Sha256: ce80647d2c616dbc2445836e04d08d6b9399a081dd9c406b7899bed30cb0c344

Contents?: true

Size: 492 Bytes

Versions: 65

Compression:

Stored size: 492 Bytes

Contents

class CreateAdminUser < ActiveRecord::Migration
  def self.up
		# TODO: Change the password
    u = User.create(:password => "password", 
                    :password_confirmation => "password", 
                    :first_name => "Administrator",
                    :last_name => "User",
                    :email => "administrator@a.com",
                    :login => "admin")

		Lockdown::System.make_user_administrator(u)
  end
	 
  def self.down
    #Nothing to see here...
	end
end

Version data entries

65 entries across 65 versions & 6 rubygems

Version Path
andrewzielinski-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
blaxter-lockdown-0.9.8.99 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
blaxter-lockdown-0.9.9 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
hone-lockdown-1.2.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
hone-lockdown-1.2.2 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
hone-lockdown-1.2.3 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
revo-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown_vail-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.6.5 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
revo-lockdown-1.6.2.2 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.6.4 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.6.3 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
revo-lockdown-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
revo-lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.6.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.6.0 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.5.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.5.0 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-1.3.2 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb