Sha256: ff0403cda7453b5a808499b0263f044e26710f8938a5daf39f09564f6ff4c328

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

class AddMoreIndexes < ActiveRecord::Migration
  def self.up
    add_index :posts, :published_at
    add_index :posts, :published_as
    add_index :polls, :created_at    
    add_index :polls, :post_id
    add_index :activities, :created_at
    add_index :activities, :user_id
  end
  
  def self.down
    remove_index :posts, :published_at
    remove_index :posts, :published_as        
    remove_index :polls, :created_at    
    remove_index :polls, :post_id        
    remove_index :activities, :created_at
    remove_index :activities, :user_id
  end  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/057_add_more_indexes.rb
community_engine-3.0.0 db/migrate/057_add_more_indexes.rb
community_engine-2.3.2 db/migrate/057_add_more_indexes.rb
community_engine-2.3.1 db/migrate/057_add_more_indexes.rb
community_engine-2.3.0 db/migrate/057_add_more_indexes.rb
community_engine-2.1.0 db/migrate/057_add_more_indexes.rb
community_engine-2.0.0 db/migrate/057_add_more_indexes.rb
community_engine-2.0.0.beta3 db/migrate/057_add_more_indexes.rb
community_engine-2.0.0.beta2 db/migrate/057_add_more_indexes.rb
community_engine-2.0.0.beta1 db/migrate/057_add_more_indexes.rb