update with changes from Production branch
This commit is contained in:
11
db/migrate/20111220200743_add_index_to_channels.rb
Normal file
11
db/migrate/20111220200743_add_index_to_channels.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class AddIndexToChannels < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_index :channels, :user_id
|
||||
add_index :channels, [:public_flag, :last_entry_id, :updated_at], :name => 'channels_public_viewable'
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :channels, :user_id
|
||||
remove_index :channels, :name => 'channels_public_viewable'
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user