Commit c8202a99 authored by Andreas Brandl's avatar Andreas Brandl

Use helper to change default

parent be15d17a
......@@ -6,7 +6,7 @@ class AddTimestampToSchemaMigration < ActiveRecord::Migration[6.1]
add_column :schema_migrations, :finished_at, :timestamptz
# Change default to NOW() for new records
change_column :schema_migrations, :finished_at, :timestamptz, default: -> { 'NOW()' }
change_column_default :schema_migrations, :finished_at, -> { 'NOW()' }
end
def down
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment