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.112.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.111.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.109.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.109.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.108.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.107.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.107.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.107.0.beta.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.106.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.105.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.104.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.103.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.102.2 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.102.1 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.102.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.101.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.100.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.99.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.98.0 db/migrations/20180315_create_verification_sequence.rb
pact_broker-2.97.0 db/migrations/20180315_create_verification_sequence.rb