CA-Hackathon-Term2/db/migrate/20171019035745_create_products.rb
2017-10-19 15:00:34 +11:00

11 lines
208 B
Ruby

class CreateProducts < ActiveRecord::Migration[5.1]
def change
create_table :products do |t|
t.string :photo
t.text :description
t.integer :price
t.timestamps
end
end
end