Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarka Košanová <jarka@gitlab.com>2019-05-22 18:47:42 +0300
committerJarka Košanová <jarka@gitlab.com>2019-06-13 20:02:13 +0300
commit1f332ae8da994509232c7601074b25514ad23c52 (patch)
tree91d0facea9e413baa568caf6af406a0fdef823b8 /db/migrate/20190430142025_create_jira_tracker_data.rb
parent07f8f2056d7143c770d420ec3345781802047810 (diff)
Create models for issue trackers data
- create tables for storing issue trackers properties - add model and basic logic & spec
Diffstat (limited to 'db/migrate/20190430142025_create_jira_tracker_data.rb')
-rw-r--r--db/migrate/20190430142025_create_jira_tracker_data.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/db/migrate/20190430142025_create_jira_tracker_data.rb b/db/migrate/20190430142025_create_jira_tracker_data.rb
new file mode 100644
index 00000000000..d328ad63854
--- /dev/null
+++ b/db/migrate/20190430142025_create_jira_tracker_data.rb
@@ -0,0 +1,26 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class CreateJiraTrackerData < ActiveRecord::Migration[5.1]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ create_table :jira_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
+ t.string :encrypted_url_iv
+ t.string :encrypted_api_url
+ t.string :encrypted_api_url_iv
+ t.string :encrypted_username
+ t.string :encrypted_username_iv
+ t.string :encrypted_password
+ t.string :encrypted_password_iv
+ t.string :jira_issue_transition_id
+ end
+ end
+end