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