Squasher requirements and data considerations
masterRequirements
- Ruby: 2.0+
- ActiveRecord: 3.1+
- Configuration: A valid development configuration in
config/database.yml.
Data Handling
If your old migrations contained code that inserted data (e.g., creating ActiveRecord model records), that code will be lost in the squashed migration.
However, squasher will prompt you to leave a temporary database containing all data inserted during the migration process. You can use this temporary database to:
- Add the data as a new migration.
- Add the data to
config/seed.rb(the recommended location for such data).