Sha256: 334b365ec84ec1a57c9f2289683a212bdfbb3468af6d4708f39cb4cfbdb7bb50

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 Bytes

Contents

class AddMissingIndexes < ActiveRecord::Migration
  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

6 entries across 6 versions & 1 rubygems

Version Path
publify_core-9.0.0.pre6 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.0.pre5 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.0.pre4 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.0.pre3 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.0.pre2 db/migrate/20150207131657_add_missing_indexes.rb
publify_core-9.0.0.pre1 db/migrate/20150207131657_add_missing_indexes.rb