Sha256: 991672f452d01ff4b1974d4cd8dd1dcb431a68788d2374cb5e0b93680460ae45

Contents?: true

Size: 336 Bytes

Versions: 42

Compression:

Stored size: 336 Bytes

Contents

Sequel.migration do
  up do
    if from(:pact_publications).count != 0
      from(:config).insert(
        name: "allow_dangerous_contract_modification",
        type: "boolean",
        value: "1",
        created_at: Sequel.datetime_class.now,
        updated_at: Sequel.datetime_class.now
      )
    end
  end

  down do

  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
pact_broker-2.96.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.95.1 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.95.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.94.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.93.4 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.93.3 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.93.2 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.93.1 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.93.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.92.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.91.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.90.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.89.1 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.89.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.88.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.87.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.86.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.85.1 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.85.0 db/migrations/20210810_set_allow_contract_modification.rb
pact_broker-2.84.0 db/migrations/20210810_set_allow_contract_modification.rb