summaryrefslogtreecommitdiff
path: root/db/migrate/20160721081015_drop_and_readd_has_external_wiki_in_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20160721081015_drop_and_readd_has_external_wiki_in_projects.rb')
-rw-r--r--db/migrate/20160721081015_drop_and_readd_has_external_wiki_in_projects.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20160721081015_drop_and_readd_has_external_wiki_in_projects.rb b/db/migrate/20160721081015_drop_and_readd_has_external_wiki_in_projects.rb
new file mode 100644
index 00000000000..459a120155d
--- /dev/null
+++ b/db/migrate/20160721081015_drop_and_readd_has_external_wiki_in_projects.rb
@@ -0,0 +1,14 @@
+class DropAndReaddHasExternalWikiInProjects < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def up
+ remove_column :projects, :has_external_wiki, :boolean
+ add_column :projects, :has_external_wiki, :boolean
+ end
+
+ def down
+ end
+end