aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-07-25 01:11:41 +0530
committerVipul A M <vipulnsward@gmail.com>2013-07-25 01:11:41 +0530
commit1235b630fec0f62f7667964be01e8d361587f713 (patch)
tree24ab0e122157c38812db663a77830581fb966421 /activerecord/Rakefile
parentfa265346a95b2264f163f170e8322afb223063c7 (diff)
downloadrails-1235b630fec0f62f7667964be01e8d361587f713.tar.gz
rails-1235b630fec0f62f7667964be01e8d361587f713.tar.bz2
rails-1235b630fec0f62f7667964be01e8d361587f713.zip
Cleanup task for informing about hstore
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r--activerecord/Rakefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 18f03e6562..ad5372ed50 100644
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -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