bus-detective/bus-detective

View on GitHub
db/migrate/20150417035819_add_remote_id_and_agency_to_stop_times.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddRemoteIdAndAgencyToStopTimes < ActiveRecord::Migration
  def change
    add_reference :stop_times, :agency, index: true

    remove_column :stop_times, :stop_id, :integer
    add_reference :stop_times, :stop, index: true

    remove_column :stop_times, :trip_id, :integer
    add_reference :stop_times, :trip, index: true
  end
end