Sha256: 9b4d60cf8569824ae36b44c29b5375c927d7e7803e097c306dfedae0b10564a2

Contents?: true

Size: 369 Bytes

Versions: 14

Compression:

Stored size: 369 Bytes

Contents

class CreateIdentifiers < ActiveRecord::Migration
  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]
  end
end

Version data entries

14 entries across 14 versions & 6 rubygems

Version Path
enju_nii-0.1.0.pre10 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_manifestation_viewer-0.1.0.pre12 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_nii-0.1.0.pre9 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_oai-0.1.0.pre10 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_manifestation_viewer-0.1.0.pre11 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_manifestation_viewer-0.1.0.pre10 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_ndl-0.1.0.pre22 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_biblio-0.1.0.pre39 db/migrate/20130506175834_create_identifiers.rb
enju_flower-0.1.0.pre8 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_manifestation_viewer-0.1.0.pre9 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_ndl-0.1.0.pre21 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_biblio-0.1.0.pre38 db/migrate/20130506175834_create_identifiers.rb
enju_manifestation_viewer-0.1.0.pre8 spec/dummy/db/migrate/20130506175834_create_identifiers.rb
enju_ndl-0.1.0.pre20 spec/dummy/db/migrate/20130506175834_create_identifiers.rb