Skip to content

Commit

Permalink
Merge pull request #1141 from alphagov/re-allow-null-timestamps
Browse files Browse the repository at this point in the history
(re-)Allow null timestamps on records imported from mongo
  • Loading branch information
aldavidson authored Aug 30, 2023
2 parents 45303b5 + d62266c commit f0301a4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/migrate/20230830093643_allow_null_timestamps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class AllowNullTimestamps < ActiveRecord::Migration[7.0]
def change
change_column_null :content_items, :created_at, true
change_column_null :content_items, :updated_at, true

change_column_null :publish_intents, :created_at, true
change_column_null :publish_intents, :updated_at, true

change_column_null :scheduled_publishing_log_entries, :created_at, true
change_column_null :scheduled_publishing_log_entries, :updated_at, true
end
end

0 comments on commit f0301a4

Please sign in to comment.