Sha256: 60f8e9d25c5f4858551d54039ce8d7c8492bc4ceb235065973fa32e32dd5fdc8

Contents?: true

Size: 406 Bytes

Versions: 6

Compression:

Stored size: 406 Bytes

Contents

class RenameBaseToSource < ActiveRecord::Migration
  def self.up
    rename_column :adjustments, :adjustment_base_id, :adjustment_source_id
    rename_column :adjustments, :adjustment_base_type, :adjustment_source_type
  end

  def self.down
    rename_column :adjustments, :adjustment_source_id, :adjustment_base_id
    rename_column :adjustments, :adjustment_source_type, :adjustment_base_type
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 db/migrate/20090806160214_rename_base_to_source.rb
spree-0.9.4 db/migrate/20090806160214_rename_base_to_source.rb
spree-0.9.3 db/migrate/20090806160214_rename_base_to_source.rb
spree-0.9.2 db/migrate/20090806160214_rename_base_to_source.rb
spree-0.9.1 db/migrate/20090806160214_rename_base_to_source.rb
spree-0.9.0 db/migrate/20090806160214_rename_base_to_source.rb