diff --git a/db/migrate/20140724134600_remove_environment_statistics_block_sooner.rb b/db/migrate/20140724134600_remove_environment_statistics_block_sooner.rb new file mode 100644 index 0000000..96bed70 --- /dev/null +++ b/db/migrate/20140724134600_remove_environment_statistics_block_sooner.rb @@ -0,0 +1,9 @@ +class RemoveEnvironmentStatisticsBlockSooner < 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 -- libgit2 0.21.2