Sha256: 2907b21e0a76661b12cfbe2e5526ac4dcbd13620c6c44668914f87f0fad61869
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
class CreatePiggybakSimpleVariantsVariantOptions < ActiveRecord::Migration def up create_table :piggybak_simple_variants_variant_options do |t| t.integer :variant_id, null: false t.integer :option_value_id, null: false t.timestamps end add_index :piggybak_simple_variants_variant_options, :variant_id, :name => 'piggybak_sv_variant_options_option_value_id' add_index :piggybak_simple_variants_variant_options, :option_value_id, :name => 'piggybak_sv_variant_options_option_value_id' end def down drop_table :piggybak_simple_variants_variant_options end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
piggybak_simple_variants-0.1.2 | db/migrate/20140513200039_create_piggybak_simple_variants_variant_options.rb |