diff options
| author | Matija Čupić <matteeyah@gmail.com> | 2018-01-28 19:24:15 +0100 |
|---|---|---|
| committer | Matija Čupić <matteeyah@gmail.com> | 2018-01-28 19:24:15 +0100 |
| commit | 6fb59ffb97cee2df2febf306bb1f835275557f23 (patch) | |
| tree | 7b941b6415058f9dfa8571dd8b0bb3461b955fff /db/migrate | |
| parent | 62b7c3ba4aa1a354ac5380400c707a381ef0e5e4 (diff) | |
| parent | dc325c672e20afa953117b0e1b04b2e399f391d7 (diff) | |
| download | gitlab-ce-6fb59ffb97cee2df2febf306bb1f835275557f23.tar.gz | |
Merge branch 'master' into 38175-add-domain-field-to-auto-devops-application-setting
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20180115201419_add_index_updated_at_to_issues.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20180115201419_add_index_updated_at_to_issues.rb b/db/migrate/20180115201419_add_index_updated_at_to_issues.rb new file mode 100644 index 00000000000..a5a48fc97be --- /dev/null +++ b/db/migrate/20180115201419_add_index_updated_at_to_issues.rb @@ -0,0 +1,15 @@ +class AddIndexUpdatedAtToIssues < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index :issues, :updated_at + end + + def down + remove_concurrent_index :issues, :updated_at + end +end |
