Commit a2ee849662ce12be9a7bebbeffcb3e34412ff400
1 parent
1a7393de
Exists in
master
and in
28 other branches
ActionItem392: updating all 'untyped' articles to be explicitly TinyMCE articles
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1862 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
db/migrate/035_specialize_articles.rb
1 | 1 | class SpecializeArticles < ActiveRecord::Migration |
2 | 2 | def self.up |
3 | - execute "update articles set type = 'TinyMceArticle' where type = 'Article'" | |
3 | + execute "update articles set type = 'TinyMceArticle' where type = 'Article' or type is null or type = ''" | |
4 | 4 | end |
5 | 5 | |
6 | 6 | def self.down |
7 | - raise ActiveRecord::Migration::IrreversibleMigration, 'cannot reverse this' | |
7 | + # nothing | |
8 | 8 | end |
9 | 9 | end | ... | ... |