11 lines
246 B
Ruby
Executable File
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
|