Skip to content

Commit 2b05a38

Browse files
Fix remove_column API doc [ci-skip]
`if_exists` checks that the column exists. In context of remove_column it checks if the column has already been removed.
1 parent 0df09dd commit 2b05a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def remove_columns(table_name, *column_names, type: nil, **options)
693693
#
694694
# If the options provided include an +if_exists+ key, it will be used to check if the
695695
# column does not exist. This will silently ignore the migration rather than raising
696-
# if the column was already used.
696+
# if the column was already removed.
697697
#
698698
# remove_column(:suppliers, :qualification, if_exists: true)
699699
def remove_column(table_name, column_name, type = nil, **options)

0 commit comments

Comments
 (0)