separated out ip ban logic from regular bans, users can no longer register if an ip ban is in place
This commit is contained in:
16
db/migrate/20100318213503_create_ip_bans.rb
Normal file
16
db/migrate/20100318213503_create_ip_bans.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateIpBans < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :ip_bans do |t|
|
||||
t.column :creator_id, :integer, :null => false
|
||||
t.column :ip_addr, :inet, :null => false
|
||||
t.column :reason, :text, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :ip_bans, :ip_addr, :unique => true
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :ip_bans
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user