Sha256: 67c263fc0599f63a84f90dd1e5109ef9a07a956e1cc99d4ee446f62cd0c1f58d

Contents?: true

Size: 336 Bytes

Versions: 55

Compression:

Stored size: 336 Bytes

Contents

class CreateIdentities < ActiveRecord::Migration[4.2]
  def change
    create_table :identities do |t|
      t.string :name
      t.string :email
      t.string :password_digest
      t.references :profile, index: true

      t.timestamps null: false
    end
    add_index :identities, :name
    add_index :identities, :email
  end
end

Version data entries

55 entries across 55 versions & 6 rubygems

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_library-0.3.11 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_subject-0.3.4 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_library-0.3.10 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_message-0.3.4 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_event-0.3.5 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_seed-0.3.6 db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.12 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.11 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_library-0.3.9 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_subject-0.3.3 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_message-0.3.3 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.10 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_library-0.3.8 spec/dummy/db/migrate/20150421023923_create_identities.rb
enju_biblio-0.3.10.rc.3 spec/dummy/db/migrate/20150421023923_create_identities.rb