From: Tom Hughes Date: Wed, 13 Aug 2008 08:12:09 +0000 (+0000) Subject: Add an administrator flag to the user table. X-Git-Tag: live~7672 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e379287e84ee44a1a8a1e50cf0d22d81b00fc009 Add an administrator flag to the user table. --- diff --git a/db/migrate/012_add_admin_flag.rb b/db/migrate/012_add_admin_flag.rb new file mode 100644 index 000000000..24f2d4ed7 --- /dev/null +++ b/db/migrate/012_add_admin_flag.rb @@ -0,0 +1,9 @@ +class AddAdminFlag < ActiveRecord::Migration + def self.up + add_column "users", "administrator", :boolean, :default => false, :null => false + end + + def self.down + remove_column "users", "administrator" + end +end