Sha256: c43425d9f615ed1c33e76054879e11c360483de1fc6de74212cc36e00f5dc7ed

Contents?: true

Size: 837 Bytes

Versions: 9

Compression:

Stored size: 837 Bytes

Contents

class IndexNecessaryColumns < ActiveRecord::Migration
  def change
    add_index :thredded_attachments, :post_id
    add_index :thredded_categories, :messageboard_id
    add_index :thredded_images, :post_id
    add_index :thredded_post_notifications, :post_id
    add_index :thredded_messageboards, :slug

    add_index :thredded_posts, :user_id
    add_index :thredded_posts, :topic_id
    add_index :thredded_posts, :messageboard_id

    add_index :thredded_private_users, :private_topic_id
    add_index :thredded_private_users, :user_id

    add_index :thredded_topic_categories, :topic_id
    add_index :thredded_topic_categories, :category_id

    add_index :thredded_topics, :user_id
    add_index :thredded_topics, :last_user_id
    add_index :thredded_topics, :messageboard_id
    add_index :thredded_topics, :hash_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thredded-0.0.12 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.10 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.9 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.8 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.7 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.6 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.5 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.4 db/migrate/20131019014258_index_necessary_columns.rb
thredded-0.0.3 db/migrate/20131019014258_index_necessary_columns.rb