Blame view

db/migrate/077_rename_location_block.rb 267 Bytes
d7ab4a9d   Rodrigo Souto   Georeferencing
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