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 def change
add_column :admins, :active, :boolean, default: false add_column :admins, :active, :boolean, default: false
admin = Admin.where(email: 'admin@entrydns.net').first 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 add_column :users, :active, :boolean, default: true
end end

Loading…
Cancel
Save