Sha256: 8f401724a7df00af784ac7b5d25b092332f342d4569bdc476f7d5c1dec2be6d2

Contents?: true

Size: 315 Bytes

Versions: 137

Compression:

Stored size: 315 Bytes

Contents

Sequel.migration do
  up do
    create_table(:verification_sequence_number) do
      Integer :value, null: false
    end

    start = (from(:verifications).max(:number) || 0) + 100
    from(:verification_sequence_number).insert(value: start)
  end

  down do
    drop_table(:verification_sequence_number)
  end
end

Version data entries

137 entries across 137 versions & 1 rubygems

Version Path
pact_broker-2.68.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.68.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.67.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.66.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.65.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.64.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.63.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.62.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.61.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.60.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.60.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.59.2 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.59.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.59.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.58.3 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.58.2 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.58.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.57.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.56.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.56.0 db/migrations/20180315_create_verification_sequence.rb