aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20140618072859_fix_column_name.ninoxe_engine.rb
blob: 9802528d395516a20ce9c280a7e7559ab8a2498f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# This migration comes from ninoxe_engine (originally 20140618071147)
class FixColumnName < ActiveRecord::Migration
  def up
    rename_column :lines, :on_demand_transportation, :flexible_service
    rename_column :vehicle_journeys, :on_demand_transportation, :flexible_service
  end

  def down
    rename_column :lines, :flexible_service, :on_demand_transportation
    rename_column :vehicle_journeys, :flexible_service, :on_demand_transportation
  end
end