Skip to content

Commit

Permalink
Improved code [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 11, 2024
1 parent 537c554 commit 091782b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/strong_migrations/checks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def check_add_column(*args)
if options.key?(:default) && (!adapter.add_column_default_safe? || (volatile = (postgresql? && type.to_s == "uuid" && default.to_s.include?("()") && adapter.default_volatile?(default))))
if options[:null] == false
options = options.except(:null)
append = "
Then add the NOT NULL constraint in separate migrations."
append = "\n\nThen add the NOT NULL constraint in separate migrations."
end

if default.nil?
Expand Down

0 comments on commit 091782b

Please sign in to comment.