vita_app/db/migrate/20160214173635_create_product_options.rb
Nicolas Bally 1d3af87d4c initial
2016-04-28 10:07:08 +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