Sha256: d4a40bbe3579d7cd1a7ed3ee0777e1b60086d5925d41c7e6006c973147cf879f

Contents?: true

Size: 495 Bytes

Versions: 58

Compression:

Stored size: 495 Bytes

Contents

require_relative 'concerns/deputisable'

module NdrDevSupport
  module RakeCI
    module CommitCop
      # This cop checks for modified migrations
      class ModifiedMigration
        include Deputisable

        def check(changes)
          return if changes[:modified].none?(&migration_file?)

          attachment(:danger,
                     'Modified Migration',
                     'Migrations should not be modified. Create another migration.')
        end
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
ndr_dev_support-7.3.1 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.3.0 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.6 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.5 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.4 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.3 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.2 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.1 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.2.0 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.1.0 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-7.0.0 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.9 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.8 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.7 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.6 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.5 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.4 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.3 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.2 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb
ndr_dev_support-6.1.1 lib/ndr_dev_support/rake_ci/commit_cop/modified_migration.rb