1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class AddGovukGuixRevisionToGovukGuixDataSnapshot < ActiveRecord::Migration[5.1] def change add_column( :govuk_guix_data_snapshots, :govuk_guix_revision_commit_hash, :string, null: false ) add_foreign_key( :govuk_guix_data_snapshots, :govuk_guix_revisions, column: :govuk_guix_revision_commit_hash, primary_key: :commit_hash ) end end