Skip to content

Commit edd0edb

Browse files
committed
Update schema_statements.rb
1 parent 6141b31 commit edd0edb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,7 @@ def column_definitions(table_name)
513513
length: ci["length"]
514514
}
515515

516-
col[:table_name] = if view_exists
517-
view_table_name(table_name)
518-
else
519-
table_name
520-
end
516+
col[:table_name] = view_exists ? view_table_name(table_name) : table_name
521517
col[:type] = column_type(ci: ci)
522518
col[:default_value], col[:default_function] = default_value_and_function(default: ci['default_value'],
523519
name: ci['name'],

0 commit comments

Comments
 (0)