debian-mirror-gitlab/db/migrate/20220525082303_create_issuable_resource_links.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
495 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# frozen_string_literal: true
class CreateIssuableResourceLinks < Gitlab::Database::Migration[2.0]
def change
create_table :issuable_resource_links do |t|
t.references :issue, null: false, foreign_key: { on_delete: :cascade }, index: true
t.text :link_text, null: true, limit: 255
t.text :link, null: false, limit: 2200
t.integer :link_type, null: false, limit: 2, default: 0 # general resource link
t.timestamps_with_timezone null: false
end
end
end