Sha256: 46a038c9094616383a9247e868d6b009c37b1028fa8db617a3d1cb19bb7983e6
Contents?: true
Size: 352 Bytes
Versions: 127
Compression:
Stored size: 352 Bytes
Contents
class RequireAdminFlag < ActiveRecord::Migration # Make the admin flag required. def self.up # update any existing records Mdm::User.update_all({:admin => true}, {:admin => nil}) change_column :users, :admin, :boolean, :null => false, :default => true end def self.down change_column :users, :admin, :boolean, :default => true end end
Version data entries
127 entries across 127 versions & 1 rubygems