Last active
December 11, 2015 17:38
-
-
Save shuma/4635776 to your computer and use it in GitHub Desktop.
This file contains 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
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