Using and managing your SQL database in rails
- Seeding - Can use ruby logic to speed up the seeding process and make it simpler
When you’re making changes to a database, this is done with a migration. This includes adding or updating tables, and including limitations and default values.
One good trick is “backfilling,” or adding more default data during a migration. This is helpful when you’re adding a bew data table, but need to create default associations that can’t be done with a normal
This is done by using a
SQL statement, like the below: