debian-mirror-gitlab/db/migrate/20190919091300_create_evidences.rb
2019-12-21 20:55:43 +05:30

14 lines
359 B
Ruby

# 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