Sha256: 2ab86330b5b8eadca33555d078d63ade48a54dfc7def9e7c1abd58da7cb5bec5

Contents?: true

Size: 420 Bytes

Versions: 8

Compression:

Stored size: 420 Bytes

Contents

class CreateIdentifiers < ActiveRecord::Migration[4.2]
  def change
    create_table :identifiers do |t|
      t.string :body, :null => false
      t.integer :identifier_type_id, :null => false
      t.integer :manifestation_id
      t.boolean :primary
      t.integer :position

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

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
enju_purchase_request-0.3.2 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_purchase_request-0.3.1 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_loc-0.3.0 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_search_log-0.3.0.beta.1 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_purchase_request-0.3.0.beta.1 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_loc-0.3.0.beta.1 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/20130506175834_create_identifiers.rb