Fix null value in migration

pull/4712/head
Oliver Günther 8 years ago
parent b5de9f1df7
commit aab5328126
  1. 2
      db/migrate/20160726090624_add_slug_to_wiki_pages.rb

@ -7,7 +7,7 @@ class AddSlugToWikiPages < ActiveRecord::Migration
# Disallow null values from now on
# Adding this above is impossible due to columns having NULL values before `migrate_titles`
change_column_null :wiki_pages, :slug, true
change_column_null :wiki_pages, :slug, false
end
def down

Loading…
Cancel
Save