Welcome to mirror list, hosted at ThFree Co, Russian Federation.

post_deployment_migration_generator.rb « post_deployment_migration « generators « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 792c49a820de0a27f32c6c03f920600c5bd393a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'rails/generators'
require 'rails/generators/active_record'
require 'rails/generators/active_record/migration/migration_generator'

module PostDeploymentMigration
  class PostDeploymentMigrationGenerator < ActiveRecord::Generators::MigrationGenerator
    def db_migrate_path
      super.sub("migrate", "post_migrate")
    end
  end
end