Sha256: 821ee7addcce54982a65a0554759bd70a9593a4a24152cdfd0081fe95cf64435

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

class CreateIdentifiers < ActiveRecord::Migration[5.0]
  def change
    create_table :identifiers do |t|
      t.string :body, null: false
      t.integer :identifier_type_id, null: false
      t.references :manifestation, foreign_key: true, type: :uuid
      t.boolean :primary
      t.integer :position

      t.timestamps
    end
    add_index :identifiers, [:body, :identifier_type_id]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_seed-0.3.0.beta.3 spec/dummy/db/migrate/20130506175834_create_identifiers.rb