Sha256: 567948abb6db1dba32f8a46cea3e12e702a1afff11d1ac6a5136d254499fe785

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

class ChangePants < ActiveRecord::Migration
  class Pant < ActiveRecord::Base
  end
  def change
    Pant.all.each do |pant|
      # do a migration depending on the redefined Pant model
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
good_migrations-0.0.2 example/db/migrate/20160202163803_change_pants.rb
good_migrations-0.0.1 example/db/migrate/20160202163803_change_pants.rb