Sha256: f2395af4f776c14bc6789ad1862b8d13e29b35ccc69b492e99ad42c226768089
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
class CreateAdminUser < ActiveRecord::Migration def self.up # TODO: Change the password u = User.new( :password => "password", :password_confirmation => "password", :login => "admin") u.profile = Profile.create(:first_name => "Administrator", :last_name => "User", :email => "administrator@a.com") u.save Lockdown::System.make_user_administrator(u) end def self.down #Nothing to see here... end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lockdown-0.5.8 | rails_generators/lockdown/templates/db/migrate/create_admin_user.rb |
lockdown-0.5.9 | rails_generators/lockdown/templates/db/migrate/create_admin_user.rb |