12 lines
245 B
Ruby
12 lines
245 B
Ruby
class CreateProducts < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :products do |t|
|
|
t.string "name"
|
|
t.bigint "industry_id"
|
|
t.bigint "supplier_id"
|
|
t.string "description"
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|