tap/db/migrate/20141124091707_create_products.rb

13 lines
238 B
Ruby
Raw Normal View History

2014-11-24 20:45:32 +00:00
class CreateProducts < ActiveRecord::Migration
def change
create_table :products do |t|
t.string :name
t.integer :purchase_price
t.integer :sale_price
t.string :img_path
t.timestamps
end
end
end