mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 01:56:03 +02:00
block ips rake task
This commit is contained in:
parent
3095185121
commit
7445f8006b
6 changed files with 60 additions and 6 deletions
12
migrations/038_blocked_ips.rb
Normal file
12
migrations/038_blocked_ips.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.create_table! :blocked_ips do
|
||||
String :ip, primary_key: true
|
||||
DateTime :created_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :blocked_ips
|
||||
}
|
||||
end
|
9
migrations/039_add_banned_at.rb
Normal file
9
migrations/039_add_banned_at.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :banned_at, :timestamp
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :banned_at
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue