diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/table.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb index 06bbe7b99e..c381613515 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -88,6 +88,8 @@ module Arel end def [] name + return nil unless @engine.connection.table_exists?(@name) + name = name.to_sym columns.find { |column| column.name == name } end |