bus-detective/bus-detective

View on GitHub
db/migrate/20150417034339_add_remote_id_and_agency_to_trips.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddRemoteIdAndAgencyToTrips < ActiveRecord::Migration
  def change
    rename_column :trips, :trip_id, :remote_id
    add_reference :trips, :agency, index: true
    remove_column :trips, :route_id, :integer
    add_reference :trips, :route, index: true
  end
end