Sha256: 9f96c4fcbfb0758ee37c945132ad661a1e0f085d2e4f5b1443063e598b5ded5f

Contents?: true

Size: 170 Bytes

Versions: 10

Compression:

Stored size: 170 Bytes

Contents

class AddIndexOnAccountParentId < ActiveRecord::Migration
  def up
    add_index :accounts, :parent_id
  end

  def down
    remove_index :accounts, :parent_id
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
has_accounts-3.1.0 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-3.0.0.beta3 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-3.0.0.beta2 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-3.0.0.beta1 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-3.0.0.beta0 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-2.1.0 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-2.0.3 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-2.0.2 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-2.0.1 db/migrate/20131105212025_add_index_on_account_parent_id.rb
has_accounts-2.0.0 db/migrate/20131105212025_add_index_on_account_parent_id.rb