Skip to content

Commit e9c93af

Browse files
authored
Merge pull request #91 from amatsuda/index_on_yyyymm
Add index on messages#yyyymm
2 parents 050cd40 + 374a774 commit e9c93af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToMessagesYyymm < ActiveRecord::Migration[8.1]
2+
def change
3+
add_index :messages, :yyyymm
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)