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