blob: 42968bbdf58275274d6f12b15a7580564bc2dd6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module ::ArJdbc
module PostgreSQL
def quote_column_name(name)
if name.is_a?(Array)
name.collect { |n| %("#{n.to_s.gsub("\"", "\"\"")}") }.join(',')
else
%("#{name.to_s.gsub("\"", "\"\"")}")
end
end
end
end
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES[:primary_key] = "bigserial primary key"
|