Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cascade Delete Rules from a Resource #44

Open
2 tasks
LinnierGames opened this issue Mar 25, 2018 · 0 comments
Open
2 tasks

Cascade Delete Rules from a Resource #44

LinnierGames opened this issue Mar 25, 2018 · 0 comments
Assignees
Labels

Comments

@LinnierGames
Copy link
Contributor

LinnierGames commented Mar 25, 2018

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

  • Delete Rules to:
    • Users
    • Trips
  • Null and Default modifiers to the following tables:
    • Users
    • Trips
    • Hotels
    • Sites (which inhertints from Hotels)
@LinnierGames LinnierGames created this issue from a note in Breezy-Traveler-Backend (Backlog) Mar 25, 2018
@LinnierGames LinnierGames self-assigned this Mar 26, 2018
@LinnierGames LinnierGames moved this from Backlog of MVP to Current Sprint in Breezy-Traveler-Backend Apr 2, 2018
@LinnierGames LinnierGames moved this from Current Sprint to Backlog of MVP in Breezy-Traveler-Backend May 2, 2018
@LinnierGames LinnierGames removed the 0.5 label Oct 25, 2018
@LinnierGames LinnierGames removed this from Backlog of MVP in Breezy-Traveler-Backend Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant