class MigratePreferencesToVersion1 < ActiveRecord::Migration def self.up ActiveRecord::Migrator.new(:up, "#{Rails.root}/../../db/migrate", 0).migrations.each do |migration| migration.migrate(:up) end end def self.down ActiveRecord::Migrator.new(:up, "#{Rails.root}/../../db/migrate", 0).migrations.each do |migration| migration.migrate(:down) end end end