mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Remove column defaults for status_pins timestamp columns (#29261)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDefaultsForStatusPinsTimestamps < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
change_column_default :status_pins, :created_at, from: -> { 'CURRENT_TIMESTAMP' }, to: nil
|
||||
change_column_default :status_pins, :updated_at, from: -> { 'CURRENT_TIMESTAMP' }, to: nil
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user