cirandas.net

ref: master

db/migrate/077_rename_location_block.rb


1
2
3
4
5
6
7
8
9
class RenameLocationBlock < ActiveRecord::Migration
  def self.up
    execute "update blocks set type='LocationBlock' where type='LocalizationBlock'"
  end

  def self.down
    execute "update blocks set type='LocalizationBlock' where type='LocationBlock'"
  end
end