10 lines
177 B
Ruby
10 lines
177 B
Ruby
|
class AddIndicesToComments < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
add_index :comments, :channel_id
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
remove_index :comments, :channel_id
|
||
|
end
|
||
|
end
|