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.3.0.pre4 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.3.0.pre3 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.3.0.pre2 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.3.0.pre1 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.beta.1 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.alpha.2 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.alpha.1 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.27 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.26 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.24 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.23 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.21 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.20 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.19 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.18 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.17 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.16 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.15 db/migrate/20121212023203_set_uuids.rb
artfully_ose-1.2.0.pre.12 db/migrate/20121212023203_set_uuids.rb