Sha256: 3725fee131c5426ce50623aef77bdfe6d0976597e236b4b422f7d8033dd8f7fa

Contents?: true

Size: 1.06 KB

Versions: 216

Compression:

Stored size: 1.06 KB

Contents

class AddCompletedAtToUserCheckoutStat < ActiveRecord::Migration
  def self.up
    add_column :user_checkout_stats, :started_at, :datetime
    add_column :user_checkout_stats, :completed_at, :datetime
    add_column :user_reserve_stats, :started_at, :datetime
    add_column :user_reserve_stats, :completed_at, :datetime
    add_column :manifestation_checkout_stats, :started_at, :datetime
    add_column :manifestation_checkout_stats, :completed_at, :datetime
    add_column :manifestation_reserve_stats, :started_at, :datetime
    add_column :manifestation_reserve_stats, :completed_at, :datetime
  end

  def self.down
    remove_column :user_checkout_stats, :started_at
    remove_column :user_checkout_stats, :completed_at
    remove_column :user_reserve_stats, :started_at
    remove_column :user_reserve_stats, :completed_at
    remove_column :manifestation_checkout_stats, :started_at
    remove_column :manifestation_checkout_stats, :completed_at
    remove_column :manifestation_reserve_stats, :started_at
    remove_column :manifestation_reserve_stats, :completed_at
  end
end

Version data entries

216 entries across 209 versions & 12 rubygems

Version Path
enju_leaf-1.1.3 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_grid-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_inter_library_loan-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_oai-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_bookmark-0.1.3 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_flower-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_biblio-0.1.2 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_library-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_circulation-0.1.1 db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_ndl-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_event-0.1.18 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_leaf-1.1.2 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_leaf-1.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_flower-0.1.0 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_biblio-0.1.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_grid-0.1.0 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_oai-0.1.0 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_library-0.1.0 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_bookmark-0.1.2 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_biblio-0.1.0 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb