Sha256: eb37af45985a23a9fe2a1733b43b80ea79194f7fcceeb9d3d195add59ba4ac1f

Contents?: true

Size: 223 Bytes

Versions: 3

Compression:

Stored size: 223 Bytes

Contents

class CreatedAtSpecificDates < ActiveRecord::Migration
  def up
    NobelPrizeWinner.all.each do |npw|
      npw.created_at = DateTime.new(2011, 1, npw.id, 11, npw.id, 12)
      npw.save
    end
  end

  def down
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tableficate-0.3.2 spec/test_app/db/migrate/20111230203456_created_at_specific_dates.rb
tableficate-0.3.1 spec/test_app/db/migrate/20111230203456_created_at_specific_dates.rb
tableficate-0.3.0 spec/test_app/db/migrate/20111230203456_created_at_specific_dates.rb