mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
10 lines
342 B
Ruby
10 lines
342 B
Ruby
class AddTimestampsToAcademicYear < ActiveRecord::Migration[7.0]
|
|
def change
|
|
now = Time.zone.now
|
|
change_table :academic_years do |t|
|
|
t.timestamps default: now
|
|
end
|
|
change_column_default :academic_years, :created_at, from: now, to: nil
|
|
change_column_default :academic_years, :updated_at, from: now, to: nil
|
|
end
|
|
end
|