diff options
author | Keith Pope <mute.pop3+gitlab@gmail.com> | 2016-08-05 10:29:09 +0100 |
---|---|---|
committer | Keith Pope <mute.pop3+gitlab@gmail.com> | 2016-10-08 12:30:47 +0100 |
commit | 07365e518330289149dd2135424c49fad19f401d (patch) | |
tree | 3a163231f4caa8f62c3fc5f4c0ca606c8ff92749 /db/migrate/20160804142904_add_ci_config_file_to_project.rb | |
parent | 28ca8502c254d5c3edfb7ece36fc365e7a715df0 (diff) | |
download | gitlab-ce-07365e518330289149dd2135424c49fad19f401d.tar.gz |
Add config option to project to allow custom .gitlab-ci.yml location
Diffstat (limited to 'db/migrate/20160804142904_add_ci_config_file_to_project.rb')
-rw-r--r-- | db/migrate/20160804142904_add_ci_config_file_to_project.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20160804142904_add_ci_config_file_to_project.rb b/db/migrate/20160804142904_add_ci_config_file_to_project.rb new file mode 100644 index 00000000000..4b9860c5f74 --- /dev/null +++ b/db/migrate/20160804142904_add_ci_config_file_to_project.rb @@ -0,0 +1,18 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddCiConfigFileToProject < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_column :projects, :ci_config_file, :string + end + + def down + remove_column :projects, :ci_config_file + end +end |