diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-24 13:02:24 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-24 13:02:24 -0700 |
commit | 7af0ae919fbf2119f94221470d4b8c3d7e909ffb (patch) | |
tree | a0f88469de8d5269a36e972cd35cae79b6dca493 /activerecord | |
parent | 7b9a4728a09fc444e064f9d1bc0fb30fbb2f0308 (diff) | |
parent | 1235b630fec0f62f7667964be01e8d361587f713 (diff) | |
download | rails-7af0ae919fbf2119f94221470d4b8c3d7e909ffb.tar.gz rails-7af0ae919fbf2119f94221470d4b8c3d7e909ffb.tar.bz2 rails-7af0ae919fbf2119f94221470d4b8c3d7e909ffb.zip |
Merge pull request #11585 from vipulnsward/hstore_change
Cleanup task for informing about hstore
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/Rakefile | 9 |
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 |