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.39.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.38.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.38.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.37.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.36.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.36.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.35.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.34.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.33.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.32.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.31.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.30.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.29.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.27.6 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.27.5 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.27.4 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.27.3 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.27.2 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.27.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.26.1 db/migrations/20180315_create_verification_sequence.rb