Show More
Commit Description:
remove new.js from SAMPLE...
Commit Description:
remove new.js from SAMPLE
this file must not be included in precompile option or
else it will be always include in all pages (which is not
what we want)
References:
File last commit:
Show/Diff file:
Action:
db/migrate/005_add_index_to_submissions.rb
| 9 lines
| 219 B
| text/x-ruby
| RubyLexer
|
|
r0 | 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 | ||||