ref: master
db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb
1 2 3 4 5 6 7 8 9
class FillIsTemplateFieldOnBasicTemplates < ActiveRecord::Migration def self.up update("update profiles set is_template = (1=1) where identifier like '%_template'") end def self.down say('This migration can\'t be reverted.') end end