Show More
Commit Description:
keep all heartbeat instead of only the latest one...
Commit Description:
keep all heartbeat instead of only the latest one (grafted from 0bdf62fde5fdb94d6f94c2b8b8ebc58ffbe8d2f9)
References:
File last commit:
Show/Diff file:
Action:
db/migrate/005_add_index_to_submissions.rb | 9 lines | 219 B | text/x-ruby | RubyLexer |
class AddIndexToSubmissions < ActiveRecord::Migration
def self.up
add_index :submissions, [:user_id, :problem_id]
end
def self.down
remove_index :submissions, :column => [:user_id, :problem_id]
end
end