Sha256: 5e50001ab104b5724acd0a8bfbdf02c8c94ea028fa0fcf69535b1f5e8a560f61

Contents?: true

Size: 571 Bytes

Versions: 122

Compression:

Stored size: 571 Bytes

Contents

Sequel.migration do
  change do
    alter_table(:verifications) do
      add_foreign_key(:consumer_id, :pacticipants)
      add_foreign_key(:provider_id, :pacticipants)
      add_index(:consumer_id, name: "verifications_consumer_id_index")
      add_index(:provider_id, name: "verifications_provider_id_index")
      add_index([:provider_id, :consumer_id], name: "verifications_provider_id_consumer_id_index")
    end

    # TODO
    # alter_table(:verifications) do
    #   set_column_not_null(:consumer_id)
    #   set_column_not_null(:provider_id)
    # end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
pact_broker-2.112.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.111.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.109.1 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.109.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.108.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.107.1 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.107.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.107.0.beta.1 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.106.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.105.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.104.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.103.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.102.2 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.102.1 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.102.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.101.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.100.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.99.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.98.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb
pact_broker-2.97.0 db/migrations/20180612_add_pacticipant_ids_to_verifications.rb