tap/db/migrate/20141110141100_create_products.rb

14 lines
261 B
Ruby
Raw Normal View History

2014-11-10 14:52:54 +00:00
class CreateProducts < ActiveRecord::Migration
def change
create_table :products do |t|
t.string :name
t.integer :sale_price
t.integer :purchase_price
t.string :image_path
t.string :type
t.timestamps
end
end
end