Sha256: 0ebde4156f67ad64028b896d488b575c8a4bd4cd26019889fa8f9820ea86baa2
Contents?: true
Size: 413 Bytes
Versions: 20
Compression:
Stored size: 413 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, %i[body identifier_type_id] add_index :identifiers, :manifestation_id end end
Version data entries
20 entries across 20 versions & 3 rubygems