Use LegacyYamler

pull/6827/head
Oliver Günther 9 years ago
parent 022585755c
commit 00e96a3c88
  1. 8
      db/migrate/20130612104243_reporting_migrate_serialized_yaml.rb

@ -17,16 +17,16 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#++ #++
require Rails.root.join("db","migrate","migration_utils","yaml_migrator").to_s require Rails.root.join("db","migrate","migration_utils","legacy_yamler").to_s
class ReportingMigrateSerializedYaml < ActiveRecord::Migration class ReportingMigrateSerializedYaml < ActiveRecord::Migration
include Migration::YamlMigrator include Migration::LegacyYamler
def up def up
migrate_yaml('cost_queries', 'serialized', 'syck', 'psych') migrate_to_psych('cost_queries', 'serialized')
end end
def down def down
migrate_yaml('cost_queries', 'serialized', 'psych', 'syck') migrate_to_psych('cost_queries', 'serialized')
end end
end end

Loading…
Cancel
Save