Sha256: 4cb1eef6c53f31a4941516d97cb12efe38da5e2f5dcaf2c89db57b3886ebb9e7

Contents?: true

Size: 210 Bytes

Versions: 4

Compression:

Stored size: 210 Bytes

Contents

class ChangePants < ActiveRecord::Migration[4.2]
  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

4 entries across 4 versions & 1 rubygems

Version Path
good_migrations-0.3.0 example/db/migrate/20160202163803_change_pants.rb
good_migrations-0.2.1 example/db/migrate/20160202163803_change_pants.rb
good_migrations-0.2.0 example/db/migrate/20160202163803_change_pants.rb
good_migrations-0.1.0 example/db/migrate/20160202163803_change_pants.rb