Sha256: 6be9ff67908c71527c1e84d25d9772258ddbe08519230ca343787f76e780e42f

Contents?: true

Size: 607 Bytes

Versions: 39

Compression:

Stored size: 607 Bytes

Contents

class CreateAccounts < ActiveRecord::Migration
  def self.up
    create_table :accounts, :force => true do |t|
      t.string      :name, :surname, :email, :salt, :crypted_password, :role, :modules
      t.timestamps
    end

    # I'll create the first account
    Account.create({:email => "info@lipsiasoft.com", 
                    :name => "Davide", 
                    :surname => "D'Agostino",
                    :password => "admin", 
                    :password_confirmation => "admin", 
                    :role => "administrator" })
  end

  def self.down
    drop_table "accounts"
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
lipsiadmin-5.1.6 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.1.5 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.1.4 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.1.3 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.1.2 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.1.1 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.1.0 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.9 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.8 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.7 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.6 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.5 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.4 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-4.1.8 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.0 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.1 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.2 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-5.0.3 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-2.9 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb
lipsiadmin-3.0 lipsiadmin_generators/backend/templates/migrations/create_accounts.rb