Sha256: 4db4e8c3878f83e9b80933112bdce2ce7a05ebfd20a14e6457c26b0c3c0aaceb

Contents?: true

Size: 1.07 KB

Versions: 110

Compression:

Stored size: 1.07 KB

Contents

class AddCompletedAtToUserCheckoutStat < ActiveRecord::Migration[4.2]
  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

110 entries across 110 versions & 11 rubygems

Version Path
enju_inter_library_loan-0.3.0.beta.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_oai-0.3.0.beta.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_circulation-0.3.0.beta.1 db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_event-0.3.0.beta.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_ndl-0.3.0.beta.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_bookmark-0.3.0.beta.1 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_library-0.3.0.beta.2 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_seed-0.3.0.beta.6 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
enju_biblio-0.3.0.beta.2 spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb