Claudius Nicolae
12 years ago
5 changed files with 37 additions and 2 deletions
@ -0,0 +1,9 @@
|
||||
class AddActiveToAdminsAndUsers < ActiveRecord::Migration |
||||
def change |
||||
add_column :admins, :active, :boolean, default: false |
||||
admin = Admin.where(email: 'admin@entrydns.net').first |
||||
admin.update_attribute(active, true) if admin |
||||
|
||||
add_column :users, :active, :boolean, default: true |
||||
end |
||||
end |
Loading…
Reference in new issue