1 2 3 4 5 6 7
class ChangeColumnNameInCallRoute < ActiveRecord::Migration def up if column_exists?(:call_routes, :table) rename_column :call_routes, :table, :routing_table end end end