Sha256: 1becfda4c5020620e2cbd8c68b6f08879d042e0383272dabb013886067856f88

Contents?: true

Size: 280 Bytes

Versions: 12

Compression:

Stored size: 280 Bytes

Contents

class AddDateIndexToResource < ActiveRecord::Migration
  def self.up
    add_index :manifestations, :created_at
    add_index :manifestations, :deleted_at
  end

  def self.down
    remove_index :manifestations, :created_at
    remove_index :manifestations, :deleted_at
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
enju_oai-0.1.0.pre10 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre9 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre8 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre7 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre6 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre5 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre4 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre3 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre2 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.1.0.pre spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.0.4 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb
enju_oai-0.0.3 spec/dummy/db/migrate/20100326024214_add_date_index_to_resource.rb