Skip to content

Commit a21ce47

Browse files
committed
rails g migration AddIndexToMessages message_id_header:index
removing the generator added `add_column` line
1 parent 667050f commit a21ce47

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 AddIndexToMessages < ActiveRecord::Migration[8.0]
2+
def change
3+
add_index :messages, :message_id_header
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)