This repository has been archived on 2024-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
redstoner.com/db/migrate/20150423221613_add_timestamps_to_existing_info.rb
2015-04-24 00:43:29 +02:00

8 lines
164 B
Ruby

class AddTimestampsToExistingInfo < ActiveRecord::Migration
def change
Info.all.each do |i|
i.update_attributes(created_at: Time.now)
end
end
end