diff options
Diffstat (limited to 'db/migrate/20150423221613_add_timestamps_to_existing_info.rb')
-rw-r--r-- | db/migrate/20150423221613_add_timestamps_to_existing_info.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20150423221613_add_timestamps_to_existing_info.rb b/db/migrate/20150423221613_add_timestamps_to_existing_info.rb new file mode 100644 index 0000000..a02a4ae --- /dev/null +++ b/db/migrate/20150423221613_add_timestamps_to_existing_info.rb @@ -0,0 +1,7 @@ +class AddTimestampsToExistingInfo < ActiveRecord::Migration + def change + Info.all.each do |i| + i.update_attributes(created_at: Time.now) + end + end +end |