Sha256: 1c830291016ba95f37ad2723908ae3c020dbaf0da9cc367d5bc0715500178005

Contents?: true

Size: 633 Bytes

Versions: 141

Compression:

Stored size: 633 Bytes

Contents

class RenameTaxTotalFields < ActiveRecord::Migration[4.2]
  def change
    rename_column :spree_line_items, :tax_total, :additional_tax_total
    rename_column :spree_shipments, :tax_total, :additional_tax_total
    rename_column :spree_orders, :tax_total, :additional_tax_total

    add_column :spree_line_items, :included_tax_total, :decimal, precision: 10, scale: 2, null: false, default: 0.0
    add_column :spree_shipments, :included_tax_total, :decimal, precision: 10, scale: 2, null: false, default: 0.0
    add_column :spree_orders, :included_tax_total, :decimal, precision: 10, scale: 2, null: false, default: 0.0
  end
end

Version data entries

141 entries across 141 versions & 2 rubygems

Version Path
spree_core-4.0.9 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.1.15 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.2.7 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.3 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.2.6 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.2 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.1 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.0 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.0.rc3 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.0.rc2 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.3.0.rc1 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.2.5 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.1.14 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.0.8 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.2.4 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-3.7.14.1 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.2.3.1 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.1.13.1 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.0.7.1 db/migrate/20131118050234_rename_tax_total_fields.rb
spree_core-4.2.3 db/migrate/20131118050234_rename_tax_total_fields.rb