cirandas.net

ref: master

db/migrate/035_specialize_articles.rb


1
2
3
4
5
6
7
8
9
class SpecializeArticles < ActiveRecord::Migration
  def self.up
    execute "update articles set type = 'TinyMceArticle' where type = 'Article' or type is null or type = ''"
  end

  def self.down
    # nothing
  end
end