Sha256: ca5d88007e290a330c2621d14f0a92d49284c03c41246ad1d1e21b395bf54ed5

Contents?: true

Size: 302 Bytes

Versions: 34

Compression:

Stored size: 302 Bytes

Contents

class FixUsersCustomValues < ActiveRecord::Migration
  def self.up
    CustomValue.where("customized_type = 'User'").
      update_all("customized_type = 'Principal'")
  end

  def self.down
    CustomValue.where("customized_type = 'Principal'").
      update_all("customized_type = 'User'")
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.23 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.22 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.21 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.20 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.19 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.18 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.17 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.16 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.15 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.14 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.13 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.12 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.10 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb
redmine_extensions-0.0.8 spec/redmine/db/migrate/20091010093521_fix_users_custom_values.rb