Sha256: 5651c043fcad82b7d66ddf5d6cef00330be18d191663ab155c1a0b314fc02572

Contents?: true

Size: 348 Bytes

Versions: 6

Compression:

Stored size: 348 Bytes

Contents

class AddFieldsToSpreeLoyaltyPointsTransaction < ActiveRecord::Migration
  def change
    add_column :spree_loyalty_points_transactions, :source_type, :string
    rename_column :spree_loyalty_points_transactions, :order_id, :source_id
    add_column :spree_loyalty_points_transactions, :updated_balance, :integer, default: 0, null: false
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_loyalty_points-1.1.1 db/migrate/20140117065314_add_fields_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.3 db/migrate/20140117065314_add_fields_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.1.0 db/migrate/20140117065314_add_fields_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.2 db/migrate/20140117065314_add_fields_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.1 db/migrate/20140117065314_add_fields_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.0 db/migrate/20140117065314_add_fields_to_spree_loyalty_points_transaction.rb