diff options
author | kennyj <kennyj@gmail.com> | 2012-06-29 20:35:49 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-07-01 00:56:50 +0900 |
commit | bece59e36df9a267046bac377001b6ff610e8151 (patch) | |
tree | e821a073df33b9e9641ae44954b4cef80995d4d4 /activerecord/lib/active_record/tasks/postgresql_database_tasks.rb | |
parent | 05c7e0ae6425fc5cbc9cb50bd035a3ee80e8b4b3 (diff) | |
download | rails-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.rb | 4 |
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 |