You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
258 B

  1. class CreateProducts < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :products do |t|
  4. t.string :title
  5. t.text :description
  6. t.string :image_url
  7. t.decimal :price, precision: 8, scale: 2
  8. t.timestamps
  9. end
  10. end
  11. end