Skip to content

Instantly share code, notes, and snippets.

@shuma
Last active December 11, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuma/4635776 to your computer and use it in GitHub Desktop.
Save shuma/4635776 to your computer and use it in GitHub Desktop.
create_table "prices", :force => true do |t|
# Price for 45 min driving
t.integer "min"
# Price for books
t.integer "littin"
# Price for test1
t.integer "risk1"
# Price for test 2
t.integer "risk2"
# Price for rental car
t.integer "hyrbil"
# Belongs to a shcool with ID
t.integer "school_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
# Every school have only one price.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment