Sha256: 6114e2ec196a6ce5a8a63599982c16d65357f3926cbb2d7109b6b341b6d5a4fb

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

class AddCachedVotesToSpreeAuctions < ActiveRecord::Migration[5.1]
  def change
    change_table :spree_auctions do |t|
      t.integer :cached_votes_total, default: 0
      t.integer :cached_votes_score, default: 0
      t.integer :cached_votes_up, default: 0
      t.integer :cached_votes_down, default: 0
      t.integer :cached_weighted_score, default: 0
      t.integer :cached_weighted_total, default: 0
      t.float :cached_weighted_average, default: 0.0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_auction-0.0.6 db/migrate/20180410031333_add_cached_votes_to_spree_auctions.rb
solidus_auction-0.0.5 db/migrate/20180410031333_add_cached_votes_to_spree_auctions.rb
solidus_auction-0.0.4 db/migrate/20180410031333_add_cached_votes_to_spree_auctions.rb
solidus_auction-0.0.3 db/migrate/20180410031333_add_cached_votes_to_spree_auctions.rb
solidus_auction-0.0.1 db/migrate/20180410031333_add_cached_votes_to_spree_auctions.rb