Sha256: f1830e1816b5cc11b9d8f07cafac80b1dc277ab73934ab6430a86bb023bfa502

Contents?: true

Size: 526 Bytes

Versions: 30

Compression:

Stored size: 526 Bytes

Contents

class CreateItemCustomValues < ActiveRecord::Migration[5.2]
  def change
    create_table :item_custom_values do |t|
      t.references :item_custom_property, null: false, foreign_key: true, index: {name: 'index_item_custom_values_on_custom_property_id'}
      t.references :item, null: false, foreign_key: true
      t.text :value

      t.timestamps
    end
    add_index :item_custom_values, [:item_custom_property_id, :item_id], unique: true, name: 'index_item_custom_values_on_custom_item_property_and_item_id'
  end
end

Version data entries

30 entries across 30 versions & 10 rubygems

Version Path
enju_subject-0.3.3 spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
enju_question-0.3.2 spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
enju_manifestation_viewer-0.3.5 spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
enju_biblio-0.3.10 db/migrate/20200425074822_create_item_custom_values.rb
enju_library-0.3.8 spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
enju_biblio-0.3.10.rc.3 db/migrate/20200425074822_create_item_custom_values.rb
enju_biblio-0.3.10.rc.2 db/migrate/20200425074822_create_item_custom_values.rb
enju_library-0.3.8.rc.2 spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
enju_library-0.3.8.rc.1 spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
enju_biblio-0.3.10.rc.1 db/migrate/20200425074822_create_item_custom_values.rb