Skip to content

Commit e53a0b7

Browse files
committed
Update schema_statements.rb
1 parent 7e4bf73 commit e53a0b7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -521,18 +521,6 @@ def column_definitions(table_name)
521521
raise ActiveRecord::StatementInvalid, "Table '#{table_name}' doesn't exist" if results.empty?
522522

523523
results.map do |ci|
524-
# col = {
525-
# name: ci["name"],
526-
# numeric_scale: ci["numeric_scale"],
527-
# numeric_precision: ci["numeric_precision"],
528-
# datetime_precision: ci["datetime_precision"],
529-
# collation: ci["collation"],
530-
# ordinal_position: ci["ordinal_position"],
531-
# length: ci["length"],
532-
# is_computed: ci["is_computed"],
533-
# is_persisted: ci["is_persisted"]
534-
# }
535-
536524
col = ci.slice("name", "numeric_scale", "numeric_precision", "datetime_precision", "collation", "ordinal_position", "length", "is_computed", "is_persisted", "computed_formula").symbolize_keys
537525

538526
col[:table_name] = view_exists ? view_table_name(table_name) : table_name

0 commit comments

Comments
 (0)