Sha256: 0cf98fd391bc63a4dcdf17f43d66d1479a68c2ad63d975634ee205ca75a06c23

Contents?: true

Size: 676 Bytes

Versions: 3

Compression:

Stored size: 676 Bytes

Contents

class AddMissingIndexes < ActiveRecord::Migration[4.2]
  def change
    add_index :feedback, [:id, :type]
    add_index :feedback, :user_id
    add_index :sidebars, [:id, :type]
    add_index :contents, :user_id
    add_index :contents, [:id, :type]
    add_index :articles_tags, :tag_id
    add_index :articles_tags, :article_id
    add_index :profiles_rights, :profile_id
    add_index :users, :profile_id
    add_index :users, :text_filter_id
    add_index :users, :resource_id
    add_index :triggers, [:pending_item_id, :pending_item_type]
    add_index :redirections, :content_id
    add_index :redirections, :redirect_id
    add_index :resources, :article_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
publify_core-9.1.0 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.1 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.0 db/migrate/20150207131657_add_missing_indexes.rb