Project

General

Profile

Download (298 Bytes) Statistics
| Branch: | Tag: | Revision:
class ChangeReportedAt < ActiveRecord::Migration
def up
Report.where(:reported_at => nil).update_all(:reported_at => Time.at(0))
change_column :reports, :reported_at, :datetime, :null => false
end

def down
change_column :reports, :reported_at, :datetime, :null => true
end
end
(277-277/282)