Sha256: 6a5aa9fa3f4f593340a12b1ae68bb46bbd25a4132f953349943a3220e79a2e92

Contents?: true

Size: 414 Bytes

Versions: 18

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

# This migration comes from g5_updatable (originally 20141211711945)
class UpdateNames < ActiveRecord::Migration[4.2]
  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

18 entries across 18 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.4.rc.3 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.4.rc.2 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.4.rc.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2.pre.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2.rc.5 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2.rc.4 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2.rc.3 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2.rc.2 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.2.rc.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.1.0 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.0.0 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.0.0.pre.4 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.0.0.pre.3 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.0.0.pre.2 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb
g5_authenticatable-1.0.0.pre.1 spec/dummy/db/migrate/20150603224036_update_names.g5_updatable.rb