Sha256: d6efb8394d9161115efad45d724d9456db1af1b1d5486c70e2fc057c3191d5f6

Contents?: true

Size: 304 Bytes

Versions: 161

Compression:

Stored size: 304 Bytes

Contents

class CreateCreates < ActiveRecord::Migration[4.2]
  def change
    create_table :creates do |t|
      t.references :agent, null: false
      t.references :work, null: false
      t.integer :position
      t.timestamps
    end
    add_index :creates, :agent_id
    add_index :creates, :work_id
  end
end

Version data entries

161 entries across 161 versions & 19 rubygems

Version Path
enju_biblio-0.3.9 db/migrate/015_create_creates.rb
enju_ndl-0.3.2 spec/dummy/db/migrate/015_create_creates.rb
enju_inventory-0.3.1 spec/dummy/db/migrate/015_create_creates.rb
enju_biblio-0.4.0.rc.1 db/migrate/015_create_creates.rb
enju_library-0.4.0.rc.1 spec/dummy/db/migrate/015_create_creates.rb
enju_seed-0.4.0.rc.2 spec/dummy/db/migrate/015_create_creates.rb
enju_leaf-1.3.4.rc.1 spec/dummy/db/migrate/015_create_creates.rb
enju_circulation-0.3.8 spec/dummy/db/migrate/015_create_creates.rb
enju_message-0.3.2 spec/dummy/db/migrate/015_create_creates.rb
enju_subject-0.3.2 spec/dummy/db/migrate/015_create_creates.rb
enju_event-0.3.4 spec/dummy/db/migrate/015_create_creates.rb
enju_seed-0.3.4 spec/dummy/db/migrate/015_create_creates.rb
enju_biblio-0.3.8 db/migrate/015_create_creates.rb
enju_library-0.3.7 spec/dummy/db/migrate/015_create_creates.rb
enju_manifestation_viewer-0.3.4 spec/dummy/db/migrate/015_create_creates.rb
enju_event-0.3.3 spec/dummy/db/migrate/015_create_creates.rb
enju_circulation-0.3.7 spec/dummy/db/migrate/015_create_creates.rb
enju_library-0.3.6 spec/dummy/db/migrate/015_create_creates.rb
enju_biblio-0.3.7 db/migrate/015_create_creates.rb
enju_biblio-0.3.6 db/migrate/015_create_creates.rb