negos_app/db/migrate/20160214173635_create_product_options.rb
2017-09-19 11:33:15 +02:00

11 lines
246 B
Ruby
Executable File

class CreateProductOptions < ActiveRecord::Migration
def change
create_table :product_options do |t|
t.references :product, index: true
t.timestamps null: false
end
add_foreign_key :product_options, :products
end
end