Sha256: 6cf130092d3192e13c85abd29ae8fae853d66de66eb6926b84a0ac097396e6ca

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

class AddChargeSourceToCharge < ActiveRecord::Migration
  def self.up
    add_column :charges, :charge_source_id, :integer
    add_column :charges, :charge_source_type, :string
  end

  def self.down
    remove_column :charges, :charge_source_type
    remove_column :charges, :charge_source_id
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 db/migrate/20090731085008_add_charge_source_to_charge.rb
spree-0.9.4 db/migrate/20090731085008_add_charge_source_to_charge.rb
spree-0.9.3 db/migrate/20090731085008_add_charge_source_to_charge.rb
spree-0.9.2 db/migrate/20090731085008_add_charge_source_to_charge.rb
spree-0.9.1 db/migrate/20090731085008_add_charge_source_to_charge.rb
spree-0.9.0 db/migrate/20090731085008_add_charge_source_to_charge.rb