db/migrate/20150806091503_add_committed_at_to_commits.rb (6 lines of code) (raw):

class AddCommittedAtToCommits < ActiveRecord::Migration def up add_column :commits, :committed_at, :timestamp add_index :commits, [:project_id, :committed_at] end end