block ips rake task

This commit is contained in:
Kyle Drake 2014-08-11 04:21:25 -07:00
parent 3095185121
commit 7445f8006b
6 changed files with 60 additions and 6 deletions

View 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

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_column :sites, :banned_at, :timestamp
}
down {
DB.drop_column :sites, :banned_at
}
end