/home/web-programming/rubyonrails/

Rails Database Migration

Rake Commands

Rename Table Column

class RenameMyColumnByHand < ActiveRecord::Migration
def self.up
rename_column :my_table, :old_name, :new_name
end

def self.down
rename_column :my_table, :new_name, :old_name
end
end

rails generate migration rename_my_column_by_hand

Heroku