Sha256: ce4fa67a18afb6ef886ac868d05e844dc61ec923a9fdf22fe87844be43577e53

Contents?: true

Size: 484 Bytes

Versions: 3

Compression:

Stored size: 484 Bytes

Contents

class CreateBrightcontentAdminUsers < ActiveRecord::Migration[4.2]
  def up
    create_table :brightcontent_admin_users do |t|
      t.string :email
      t.string :password_digest
      t.timestamps
    end

    if defined? Brightcontent::AdminUser
      Brightcontent::AdminUser.create!(
        email: 'admin@example.com',
        password: 'password',
        password_confirmation: 'password'
      )
    end
  end

  def down
    drop_table :brightcontent_admin_users
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 db/migrate/20121206121725_create_brightcontent_admin_users.rb
brightcontent-core-2.5.1 db/migrate/20121206121725_create_brightcontent_admin_users.rb
brightcontent-core-2.5.0 db/migrate/20121206121725_create_brightcontent_admin_users.rb