Sha256: 9bbdffe34e2563e4052ff8f9b269af934bac59e124a479fbe698d17f7a23e877
Contents?: true
Size: 582 Bytes
Versions: 33
Compression:
Stored size: 582 Bytes
Contents
class AvoidStarInTemplates < ActiveRecord::Migration def self.up execute "UPDATE #{TemplateContent.table_name} SET mode = REPLACE(mode, '*', '+')" execute "UPDATE #{Node.table_name} SET name = REPLACE(name, '*', '+')" execute "UPDATE #{Version.table_name} SET title = REPLACE(title, '*', '+')" end def self.down execute "UPDATE #{TemplateContent.table_name} SET mode = REPLACE(mode, '+', '*')" execute "UPDATE #{Node.table_name} SET name = REPLACE(name, '+', '*')" execute "UPDATE #{Version.table_name} SET title = REPLACE(title, '+', '*')" end end
Version data entries
33 entries across 33 versions & 1 rubygems