diff --git a/db/migrate/035_specialize_articles.rb b/db/migrate/035_specialize_articles.rb index 9fbaa3e..3b73b7e 100644 --- a/db/migrate/035_specialize_articles.rb +++ b/db/migrate/035_specialize_articles.rb @@ -1,9 +1,9 @@ class SpecializeArticles < ActiveRecord::Migration def self.up - execute "update articles set type = 'TinyMceArticle' where type = 'Article'" + execute "update articles set type = 'TinyMceArticle' where type = 'Article' or type is null or type = ''" end def self.down - raise ActiveRecord::Migration::IrreversibleMigration, 'cannot reverse this' + # nothing end end -- libgit2 0.21.2