In my migrations I oftenly add some data to the created tables.
Sometimes it’s fix data that should be generated also when going
productive; e.g. a list of countries.
But sometimes it is data that is just for testing purposes in the
development environment. Now I’d like to send a parameter that
determines whether to create the test data when calling rake:
$ rake migrate TEST_DATA=1
Or something like that. How can this be achieved?
Thanks for help,