Sha256: a680a21e616c47975b9c4bf78e71e9c81fde62442865e77d910fea05a6da9196

Contents?: true

Size: 186 Bytes

Versions: 4

Compression:

Stored size: 186 Bytes

Contents

class FixEinstein < ActiveRecord::Migration
  def up
    npw = NobelPrizeWinner.find_by_first_name('Albert')
    npw.update_attribute(:last_name, 'Einstein')
  end

  def down
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
with_filters-0.1.2 spec/dummy/db/migrate/20120214172946_fix_einstein.rb
with_filters-0.1.1 spec/dummy/db/migrate/20120214172946_fix_einstein.rb
with_filters-0.1.0 spec/dummy/db/migrate/20120214172946_fix_einstein.rb
with_order-0.1.0 spec/dummy/db/migrate/20120214172946_fix_einstein.rb