Sha256: 658d3569b9d4530da8eca3f73d2a7b396a2d85aff3e5c9bdc9c06f8701f37e44

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

class CreateMksAuthUsers < ActiveRecord::Migration[5.0]
  def change
    create_table :mks_auth_users do |t|
      t.string :first_name, null: false
      t.string :last_name, null: false
      t.string :email, null: false
      t.boolean :active, null: false, default: true
      t.references :application_module, index: true
      t.string :password_digest

      t.timestamps
    end

    add_foreign_key :mks_auth_users, :mks_auth_application_modules, :column => :application_module_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mks_auth-1.4.0 db/migrate/20161029065959_create_mks_auth_users.rb
mks_auth-1.2.0 db/migrate/20161029065959_create_mks_auth_users.rb
mks_auth-1.0.0 db/migrate/20161029065959_create_mks_auth_users.rb