Breezy-Traveler / Breezy-Traveler-API

Api service for the client ios app
1 stars 0 forks source link

Cascade Delete Rules from a Resource #44

Open LinnierGames opened 6 years ago

LinnierGames commented 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.

http://edgeguides.rubyonrails.org/active_record_migrations.html#column-modifiers

TODO