gitlab-org--gitlab-foss/db/migrate/20190919091300_create_evidences.rb

15 lines
359 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateEvidences < ActiveRecord::Migration[5.2]
DOWNTIME = false
def change
create_table :evidences do |t|
t.references :release, foreign_key: { on_delete: :cascade }, null: false
t.timestamps_with_timezone
t.binary :summary_sha
t.jsonb :summary, null: false, default: {}
end
end
end