Sha256: a24559463b8ef1e8dbe4b6aeabbd8a3b74e968e6389d852e2c4ff346e44be9da

Contents?: true

Size: 690 Bytes

Versions: 8

Compression:

Stored size: 690 Bytes

Contents

class CreateIndexes < ActiveRecord::Migration
  def change
    add_index :volumes, :remote_id
    add_index :volumes, :server_id
    add_index :volumes, :availability_zone_id
    add_index :volumes, :last_import_id
    add_index :servers, :remote_id
    add_index :servers, :availability_zone_id
    add_index :servers, :flavor_id
    add_index :servers, :last_import_id
    add_index :tags, [:taggable_id, :taggable_type]

    add_index :aws_billing_imports, :operation
    add_index :aws_billing_imports, :item_description
    add_index :aws_billing_imports, :resource_id
    add_index :aws_billing_imports, :usage_start_date
    add_index :aws_billing_imports, :usage_end_date
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
crop-duster-0.0.14 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.13 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.12 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.11 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.10 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.9 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.8 db/migrate/20140113214652_create_indexes.rb
crop-duster-0.0.7 db/migrate/20140113214652_create_indexes.rb