debian-mirror-gitlab/db/migrate/20200309162244_add_open_project_tracker_data.rb

26 lines
929 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
# See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddOpenProjectTrackerData < ActiveRecord::Migration[6.0]
DOWNTIME = false
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
2020-04-08 14:13:33 +05:30
def change
create_table :open_project_tracker_data do |t|
t.references :service, foreign_key: { on_delete: :cascade }, type: :integer, index: true, null: false
t.timestamps_with_timezone
t.string :encrypted_url, limit: 255
t.string :encrypted_url_iv, limit: 255
t.string :encrypted_api_url, limit: 255
t.string :encrypted_api_url_iv, limit: 255
t.string :encrypted_token, limit: 255
t.string :encrypted_token_iv, limit: 255
t.string :closed_status_id, limit: 5
t.string :project_identifier_code, limit: 100
end
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
2020-04-08 14:13:33 +05:30
end