Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Last active August 29, 2015 14:02
Show Gist options
  • Save rocodev-tech/b1e4d7ca18b997f97887 to your computer and use it in GitHub Desktop.
Save rocodev-tech/b1e4d7ca18b997f97887 to your computer and use it in GitHub Desktop.
create_order.rb
class CreateOrders < ActiveRecord::Migration
def change
create_table :orders do |t|
t.integer :user_id
t.integer :total
t.boolean :paid, :default => false
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment