Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Created June 13, 2014 04:00
Show Gist options
  • Save rocodev-tech/27fc54981d949e9fa619 to your computer and use it in GitHub Desktop.
Save rocodev-tech/27fc54981d949e9fa619 to your computer and use it in GitHub Desktop.
create_order_item.rb
class CreateOrderItems < ActiveRecord::Migration
def change
create_table :order_items do |t|
t.string :product_name
t.float :price
t.integer :quantity
t.integer :order_id
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment