Last active
August 29, 2015 14:02
-
-
Save rocodev-tech/b1e4d7ca18b997f97887 to your computer and use it in GitHub Desktop.
create_order.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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