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
lockdown-0.5.18 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.17 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.12 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.10 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.11 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.13 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.21 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.22 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.20 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.5.19 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.7.0 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.6.2 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.6.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.6.0 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.8.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.9.0 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.8.0 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.7.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.6.3 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb
lockdown-0.9.1 rails_generators/lockdown/templates/db/migrate/create_admin_user.rb