Sha256: 53bea2a6b47a11bab07d3ba200f7c86b9377150c156fecffe39f658c63f1a48f

Contents?: true

Size: 244 Bytes

Versions: 54

Compression:

Stored size: 244 Bytes

Contents

class RenamedRmaCancelledState < ActiveRecord::Migration
  def self.up
    ReturnAuthorization.where(:state => 'cancelled').each do |rma|
      rma.update_attribute_without_callbacks(:state, 'canceled')
    end
  end

  def self.down
  end
end

Version data entries

54 entries across 42 versions & 9 rubygems

Version Path
spree_core-0.70.7 db/migrate/20101111133551_renamed_rma_cancelled_state.rb
spree_core-0.70.6 db/migrate/20101111133551_renamed_rma_cancelled_state.rb
apispree_core-0.0.0 db/migrate/20101111133551_renamed_rma_cancelled_state.rb
My-Commerce_core-1.1.0 db/migrate/20101111133551_renamed_rma_cancelled_state.rb
My-Commerce_core-1.0.0 db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 api/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 core/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 promo/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 sandbox/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 dash/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 auth/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerceapi-1.0.0 core/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 core/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 sandbox/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 dash/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 api/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 core/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 auth/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
MyCommerce-0.0.3 promo/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb
rfcommerce_sandbox-0.0.3 db/migrate/20101111133551_renamed_rma_cancelled_state.rb