diff options
author | Artem Sidorenko <artem.sidorenko@telekom.de> | 2015-08-12 08:13:20 +0200 |
---|---|---|
committer | Artem Sidorenko <artem.sidorenko@telekom.de> | 2015-08-20 11:28:27 +0200 |
commit | 55dca86b983496a26a3913aead77439edf96afe9 (patch) | |
tree | c02b8dfe8aba50265f59ba0170eb09b9fc2f9e19 /db/migrate | |
parent | 55fc58bda4a5592f2f8deaecec9526fbe4eecd6f (diff) | |
download | gitlab-ce-55dca86b983496a26a3913aead77439edf96afe9.tar.gz |
Import sources: settings in the admin interface
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20150812080800_add_settings_import_sources.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20150812080800_add_settings_import_sources.rb b/db/migrate/20150812080800_add_settings_import_sources.rb new file mode 100644 index 00000000000..276d2fdb2b1 --- /dev/null +++ b/db/migrate/20150812080800_add_settings_import_sources.rb @@ -0,0 +1,11 @@ +require 'yaml' + +class AddSettingsImportSources < ActiveRecord::Migration + def change + unless column_exists?(:application_settings, :import_sources) + add_column :application_settings, :import_sources, :text + import_sources = YAML::dump(Settings.gitlab['import_sources']) + execute("update application_settings set import_sources = '#{import_sources}'") + end + end +end |