Commit 8a6ab0d26ec75228d4b3a98f3201a6dbf8e1c497
Exists in
master
and in
22 other branches
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
db/migrate/20140724134600_remove_environment_statistics_block_sooner.rb
0 → 100644
| @@ -0,0 +1,9 @@ | @@ -0,0 +1,9 @@ | ||
| 1 | +class RemoveEnvironmentStatisticsBlockSooner < ActiveRecord::Migration | ||
| 2 | + def self.up | ||
| 3 | + update("UPDATE blocks SET type = 'StatisticsBlock' WHERE type = 'EnvironmentStatisticsBlock'") | ||
| 4 | + end | ||
| 5 | + | ||
| 6 | + def self.down | ||
| 7 | + say("Nothing to undo (cannot recover the data)") | ||
| 8 | + end | ||
| 9 | +end |