From 5aac9f625171caacecc22f942a3e11ff086eb86d Mon Sep 17 00:00:00 2001 From: Claudius Nicolae Date: Fri, 15 Mar 2013 00:47:23 +0200 Subject: [PATCH] oops --- db/migrate/20130305074635_add_active_to_admins_and_users.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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