diff options
author | francis <francis> | 2009-03-09 01:17:04 +0000 |
---|---|---|
committer | francis <francis> | 2009-03-09 01:17:04 +0000 |
commit | d9352a1b382008de35457e15b03346e873b3b229 (patch) | |
tree | 27e07c75f6cf53764f6e615ae9759a6765223064 /db/migrate | |
parent | 0ba2aca33b78803d5bc86dae4ea2dbf2322a95fc (diff) |
Option to ban users.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/073_add_ban_user.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/073_add_ban_user.rb b/db/migrate/073_add_ban_user.rb new file mode 100644 index 000000000..15a1ea121 --- /dev/null +++ b/db/migrate/073_add_ban_user.rb @@ -0,0 +1,10 @@ +class AddBanUser < ActiveRecord::Migration + def self.up + add_column :users, :ban_text, :text, :null => false, :default => "" + end + + def self.down + remove_column :users, :ban_text + end +end + |