ref: master
db/migrate/20140724134600_remove_environment_statistics_block.rb
1 2 3 4 5 6 7 8 9
class RemoveEnvironmentStatisticsBlock < ActiveRecord::Migration def self.up update("UPDATE blocks SET type = 'StatisticsBlock' WHERE type = 'EnvironmentStatisticsBlock'") end def self.down say("Nothing to undo (cannot recover the data)") end end