Permalink
Browse files

Merge pull request #11585 from vipulnsward/hstore_change

Cleanup task for informing about hstore
  • Loading branch information...
2 parents 7b9a472 + 1235b63 commit 7af0ae919fbf2119f94221470d4b8c3d7e909ffb @rafaelfranca rafaelfranca committed Jul 24, 2013
Showing with 3 additions and 6 deletions.
  1. +3 −6 activerecord/Rakefile
View
@@ -119,12 +119,9 @@ namespace :postgresql do
%x( createdb -E UTF8 -T template0 #{config['arunit']['database']} )
%x( createdb -E UTF8 -T template0 #{config['arunit2']['database']} )
- # prepare hstore
- version = %x( createdb --version ).strip.gsub(/(.*)(\d\.\d\.\d)$/, "\\2")
- %w(arunit arunit2).each do |db|
- if version < "9.1.0"
- puts "Please prepare hstore data type. See http://www.postgresql.org/docs/9.0/static/hstore.html"
- end
+ # notify about preparing hstore
+ if %x( createdb --version ).strip.gsub(/(.*)(\d\.\d\.\d)$/, "\\2") < "9.1.0"
+ puts "Please prepare hstore data type. See http://www.postgresql.org/docs/9.0/static/hstore.html"
end
end

0 comments on commit 7af0ae9

Please sign in to comment.