| Module | Lightrail::Generator::Commands::Create |
| In: |
lib/lightrail/commands.rb
|
This won‘t work with my current setup Loops through all of the migrations Copies them to the main app‘s migration directory Names them according to the sequence in the main app‘s migrate directory
Used in the lightrail_destroy_files generator Basically just calls the destroy method from the generate method so files can only ever be deleted
When creating a migration, it knows to find the first available file in db/migrate and use the migration.rb template.