Sha256: b54e464c4f42d6ea3408dd9fb29cb67ff436fab0b8b5be1deacd01ee737ef638
Contents?: true
Size: 1.19 KB
Versions: 30
Compression:
Stored size: 1.19 KB
Contents
Sequel.migration do up do create_table(:pact_version_provider_tag_successful_verifications, charset: "utf8") do primary_key :id foreign_key :pact_version_id, :pact_versions, null: false, on_delete: :cascade, foreign_key_constraint_name: "pact_version_provider_tag_successful_verifications_pv_id_fk" String :provider_version_tag_name, null: false Boolean :wip, null: false Integer :verification_id DateTime :execution_date, null: false index([:pact_version_id, :provider_version_tag_name, :wip], unique: true, name: "pact_version_provider_tag_verifications_pv_pvtn_wip_unique") # The implication of the on_delete: :set_null for verification_id is # that even if the verification result is deleted from the broker, # the wip/pending status stays the same. # We may or may not want this. Will have to wait and see. # Have made the foreign key a separate declaration so it can more easily be remade. foreign_key([:verification_id], :verifications, on_delete: :set_null, name: "pact_version_provider_tag_successful_verifications_v_id_fk") end end down do drop_table(:pact_version_provider_tag_successful_verifications) end end
Version data entries
30 entries across 30 versions & 1 rubygems