diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-03-02 04:45:37 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-02 05:09:37 +0800 |
commit | cc0e2cff96f917f62210a29554ca0b1e26f31748 (patch) | |
tree | 41b32a9a5eda527f214f123f559a58da38af619e /db/migrate/20170301195939_rename_ci_commits_to_ci_pipelines.rb | |
parent | b6a945b39354ec2b2c09fc5f6904dfbf8990df26 (diff) | |
download | gitlab-ce-cc0e2cff96f917f62210a29554ca0b1e26f31748.tar.gz |
Rename table ci_commits to ci_pipelinesrename-ci_commits-to-ci_pipeline
Diffstat (limited to 'db/migrate/20170301195939_rename_ci_commits_to_ci_pipelines.rb')
-rw-r--r-- | db/migrate/20170301195939_rename_ci_commits_to_ci_pipelines.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20170301195939_rename_ci_commits_to_ci_pipelines.rb b/db/migrate/20170301195939_rename_ci_commits_to_ci_pipelines.rb new file mode 100644 index 00000000000..4f061d96392 --- /dev/null +++ b/db/migrate/20170301195939_rename_ci_commits_to_ci_pipelines.rb @@ -0,0 +1,10 @@ +class RenameCiCommitsToCiPipelines < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = true + DOWNTIME_REASON = 'Rename table ci_commits to ci_pipelines' + + def change + rename_table 'ci_commits', 'ci_pipelines' + end +end |