blob: 03f00c9416b08eb2c06dc2836621c52e37268c0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class CreateResourceLinkEvents < Gitlab::Database::Migration[2.1]
def change
create_table :resource_link_events do |t|
t.integer :action, limit: 2, null: false
t.bigint :user_id, null: false
t.references :issue, index: true, null: false, foreign_key: { on_delete: :cascade }
t.references :child_work_item, index: true, null: false, foreign_key: { to_table: :issues, on_delete: :cascade }
t.datetime_with_timezone :created_at, null: false
t.index :user_id
end
end
end
|