aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-06-29 20:35:49 +0900
committerkennyj <kennyj@gmail.com>2012-07-01 00:56:50 +0900
commitbece59e36df9a267046bac377001b6ff610e8151 (patch)
treee821a073df33b9e9641ae44954b4cef80995d4d4 /activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
parent05c7e0ae6425fc5cbc9cb50bd035a3ee80e8b4b3 (diff)
downloadrails-bece59e36df9a267046bac377001b6ff610e8151.tar.gz
rails-bece59e36df9a267046bac377001b6ff610e8151.tar.bz2
rails-bece59e36df9a267046bac377001b6ff610e8151.zip
Extract collation tasks to database tasks.
Diffstat (limited to 'activerecord/lib/active_record/tasks/postgresql_database_tasks.rb')
-rw-r--r--activerecord/lib/active_record/tasks/postgresql_database_tasks.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
index a210392e53..4139460273 100644
--- a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
@@ -29,6 +29,10 @@ module ActiveRecord
connection.encoding
end
+ def collation
+ connection.collate
+ end
+
def purge
clear_active_connections!
drop