diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-01-07 20:55:21 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-01-07 20:55:21 +0300 |
commit | f40b5860d76a8ea5d964260834a6e83516b0f1fd (patch) | |
tree | 2a8e92896130697178f5c989e49fa686f66ce073 /db/migrate/20181212171634_create_error_tracking_settings.rb | |
parent | 549ee8ada3b59278871a89720632584bc5cc11df (diff) |
Add table and model for error tracking settings
Diffstat (limited to 'db/migrate/20181212171634_create_error_tracking_settings.rb')
-rw-r--r-- | db/migrate/20181212171634_create_error_tracking_settings.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20181212171634_create_error_tracking_settings.rb b/db/migrate/20181212171634_create_error_tracking_settings.rb new file mode 100644 index 00000000000..18c38bd2c47 --- /dev/null +++ b/db/migrate/20181212171634_create_error_tracking_settings.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class CreateErrorTrackingSettings < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + create_table :project_error_tracking_settings, id: :int, primary_key: :project_id, default: nil do |t| + t.boolean :enabled, null: false, default: true + t.string :api_url, null: false + t.string :encrypted_token + t.string :encrypted_token_iv + t.foreign_key :projects, column: :project_id, on_delete: :cascade + end + end +end |