2018-10-08 14:50:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-01 20:44:27 +00:00
|
|
|
require 'rails/generators'
|
2021-10-25 09:12:21 +00:00
|
|
|
require 'rails/generators/active_record'
|
|
|
|
require 'rails/generators/active_record/migration/migration_generator'
|
2016-11-01 20:44:27 +00:00
|
|
|
|
2021-08-13 18:09:11 +00:00
|
|
|
module PostDeploymentMigration
|
2021-10-25 09:12:21 +00:00
|
|
|
class PostDeploymentMigrationGenerator < ActiveRecord::Generators::MigrationGenerator
|
|
|
|
def db_migrate_path
|
|
|
|
super.sub("migrate", "post_migrate")
|
2016-10-27 12:36:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|