diff --git a/db/migrate/20130305074635_add_active_to_admins_and_users.rb b/db/migrate/20130305074635_add_active_to_admins_and_users.rb index 06272bc..803165c 100644 --- a/db/migrate/20130305074635_add_active_to_admins_and_users.rb +++ b/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