diff options
| -rw-r--r-- | db/migrate/20090917180422_add_admin_flag_to_user.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090917180422_add_admin_flag_to_user.rb b/db/migrate/20090917180422_add_admin_flag_to_user.rb new file mode 100644 index 0000000..d15c866 --- /dev/null +++ b/db/migrate/20090917180422_add_admin_flag_to_user.rb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | class AddAdminFlagToUser < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | add_column :users, :admin, :boolean | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | remove_column :users, :admin | ||
| 8 | end | ||
| 9 | end | ||
