From a57fb0c2084885c35b7ba89917c37696e5df3b3f Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 7 Oct 2009 18:00:05 +0200 Subject: add admin flag to users table --- db/migrate/20090917180422_add_admin_flag_to_user.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20090917180422_add_admin_flag_to_user.rb (limited to 'db') 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 @@ +class AddAdminFlagToUser < ActiveRecord::Migration + def self.up + add_column :users, :admin, :boolean + end + + def self.down + remove_column :users, :admin + end +end -- cgit v1.3