diff options
| author | hukl <contact@smyck.org> | 2009-10-07 18:00:05 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-07 18:00:05 +0200 |
| commit | a57fb0c2084885c35b7ba89917c37696e5df3b3f (patch) | |
| tree | 4a6b638f65fda51dfab6e2f30e3f7f8312d39e18 | |
| parent | 5e1f877d6fb4f7504039444ad36ad7b964fc934e (diff) | |
add admin flag to users table
| -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 | ||
