metamaps--metamaps/db/migrate/20140210031525_add_admin_to_users.rb

8 lines
182 B
Ruby
Raw Normal View History

2014-02-10 04:36:23 +00:00
class AddAdminToUsers < ActiveRecord::Migration
def change
add_column :users, :admin, :boolean
User.reset_column_information
User.update_all(:admin => false)
end
end