metamaps--metamaps/db/migrate/20140210031525_add_admin_to_users.rb
2014-02-09 23:36:23 -05:00

7 lines
182 B
Ruby

class AddAdminToUsers < ActiveRecord::Migration
def change
add_column :users, :admin, :boolean
User.reset_column_information
User.update_all(:admin => false)
end
end