10 lines
160 B
Ruby
10 lines
160 B
Ruby
|
class AddIndexToFeeds < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
add_index :feeds, :device_id
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
remove_index :feeds, :device_id
|
||
|
end
|
||
|
end
|