Skip to content

Commit

Permalink
Update schema_statements.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Sep 3, 2024
1 parent 6141b31 commit edd0edb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,7 @@ def column_definitions(table_name)
length: ci["length"]
}

col[:table_name] = if view_exists
view_table_name(table_name)
else
table_name
end
col[:table_name] = view_exists ? view_table_name(table_name) : table_name
col[:type] = column_type(ci: ci)
col[:default_value], col[:default_function] = default_value_and_function(default: ci['default_value'],
name: ci['name'],
Expand Down

0 comments on commit edd0edb

Please sign in to comment.