Sha256: 7761cb1b2f2c3014cd63a1b40fe2f0acef0979904bc30263853e08ce58a4eea3

Contents?: true

Size: 240 Bytes

Versions: 35

Compression:

Stored size: 240 Bytes

Contents

class SetUuids < ActiveRecord::Migration
  def change
    Event.all.each do |event|
      event.update_column(:uuid, Ext::Uuid.uuid)
    end
    
    Show.all.each do |show|
      show.update_column(:uuid, Ext::Uuid.uuid)
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.11 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.10 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.9 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.8 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.7 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.6 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.5 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.4 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.3 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.2 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.1 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.1.0 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.1.0.rc2 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.1.0.rc1 db/migrate/20121212023203_set_uuids.rb