You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, add null and default values to the table creation. So far only the Ruby models validate the presence of properties. But, using null and default modifiers will ensure columns are not blank.
If a User is deleted, so are all of the trips. If a trip is deleted so are all of the hotels and sites.
Docs here: http://edgeguides.rubyonrails.org/association_basics.html
Also, add
null
anddefault
values to the table creation. So far only the Ruby models validate the presence of properties. But, using null and default modifiers will ensure columns are not blank.http://edgeguides.rubyonrails.org/active_record_migrations.html#column-modifiers
TODO
The text was updated successfully, but these errors were encountered: