Sha256: 5d930c439e967067483666e7cf4781084c94ecd26eaeb6bc2c646f20c0f0cba7

Contents?: true

Size: 378 Bytes

Versions: 12

Compression:

Stored size: 378 Bytes

Contents

# This migration comes from g5_updatable (originally 20141211711945)
class UpdateNames < ActiveRecord::Migration
  def change
    G5Updatable::Client.all.each do |client|
      client.update_attributes(name: client.properties['name'])
    end
    G5Updatable::Location.all.each do |location|
      location.update_attributes(name: location.properties['name'])
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
g5_authenticatable-0.9.1.pre.2 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.8.1.pre spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.8.0 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.8.0.beta1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.5 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.5.beta spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.4 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.4.beta.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.3 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.2 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-0.7.0 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb