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

11 lines
277 B
Ruby
Executable File

class CreateProductCollections < ActiveRecord::Migration
def change
create_table :product_collections do |t|
t.references :product_category, index: true
t.timestamps null: false
end
add_foreign_key :product_collections, :product_categories
end
end