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

Version Path
zena-1.2.8 db/fix/045_avoid_star_in_templates.rb
zena-1.2.7 db/fix/045_avoid_star_in_templates.rb
zena-1.2.6 db/fix/045_avoid_star_in_templates.rb
zena-1.2.5 db/fix/045_avoid_star_in_templates.rb
zena-1.2.4 db/fix/045_avoid_star_in_templates.rb
zena-1.2.3 db/fix/045_avoid_star_in_templates.rb
zena-1.2.2 db/fix/045_avoid_star_in_templates.rb
zena-1.2.1 db/fix/045_avoid_star_in_templates.rb
zena-1.2.0 db/fix/045_avoid_star_in_templates.rb
zena-1.1.3 db/fix/045_avoid_star_in_templates.rb
zena-1.1.2 db/fix/045_avoid_star_in_templates.rb
zena-1.1.1 db/fix/045_avoid_star_in_templates.rb
zena-1.1.0 db/fix/045_avoid_star_in_templates.rb
zena-1.0.0 db/fix/045_avoid_star_in_templates.rb
zena-1.0.0.rc3 db/fix/045_avoid_star_in_templates.rb
zena-1.0.0.rc2 db/fix/045_avoid_star_in_templates.rb
zena-1.0.0.rc1 db/fix/045_avoid_star_in_templates.rb
zena-0.16.9 db/migrate/045_avoid_star_in_templates.rb
zena-1.0.0.beta3 db/migrate/045_avoid_star_in_templates.rb
zena-0.16.8 db/migrate/045_avoid_star_in_templates.rb