summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-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