blob: a08e208441d1302c45800703ba340b78f80ea9e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class CreateTestReports < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
create_table :requirements_management_test_reports do |t|
t.datetime_with_timezone :created_at, null: false
t.references :requirement, null: false, foreign_key: { on_delete: :cascade }
t.bigint :pipeline_id
t.bigint :author_id
t.integer :state, null: false, limit: 2
t.index :pipeline_id
t.index :author_id
end
end
end
|