summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-07 18:00:05 +0200
committerhukl <contact@smyck.org>2009-10-07 18:00:05 +0200
commita57fb0c2084885c35b7ba89917c37696e5df3b3f (patch)
tree4a6b638f65fda51dfab6e2f30e3f7f8312d39e18 /db/migrate
parent5e1f877d6fb4f7504039444ad36ad7b964fc934e (diff)
add admin flag to users table
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20090917180422_add_admin_flag_to_user.rb9
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 @@
1class 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
9end