Open LinnierGames opened 6 years ago
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 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.
null
default
http://edgeguides.rubyonrails.org/active_record_migrations.html#column-modifiers
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