Browse Source

oops

pull/1/head
Claudius Nicolae 12 years ago
parent
commit
5aac9f6251
  1. 2
      db/migrate/20130305074635_add_active_to_admins_and_users.rb

2
db/migrate/20130305074635_add_active_to_admins_and_users.rb

@ -2,7 +2,7 @@ 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
admin.update_attribute(:active, true) if admin
add_column :users, :active, :boolean, default: true
end

Loading…
Cancel
Save