Use postgres_ext for array support - warvox - Unnamed repository; edit this fil… | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 52ae1909d535f2886e702c0a4d14dc497ae69c8b | |
parent 3bb9ea703f8ffc3f407674cb195a223882996a30 | |
Author: HD Moore <[email protected]> | |
Date: Thu, 27 Dec 2012 00:30:23 -0600 | |
Use postgres_ext for array support | |
Diffstat: | |
M Gemfile | 3 +++ | |
M Gemfile.lock | 5 +++++ | |
M db/schema.rb | 2 +- | |
3 files changed, 9 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/Gemfile b/Gemfile | |
@@ -5,6 +5,9 @@ gem 'thin' | |
gem 'rails', '3.2.8' | |
gem 'pg', '0.11' | |
+# Integer array support (until Rails 4.0 is released) | |
+gem 'postgres_ext' | |
+ | |
gem 'kissfft' | |
gem 'librex' | |
diff --git a/Gemfile.lock b/Gemfile.lock | |
@@ -59,7 +59,11 @@ GEM | |
mime-types (1.19) | |
multi_json (1.5.0) | |
pg (0.11.0) | |
+ pg_array_parser (0.0.1) | |
polyglot (0.3.3) | |
+ postgres_ext (0.0.6) | |
+ activerecord (~> 3.2.0) | |
+ pg_array_parser (~> 0.0.1) | |
rack (1.4.1) | |
rack-cache (1.2) | |
rack (>= 0.4) | |
@@ -119,6 +123,7 @@ DEPENDENCIES | |
kissfft | |
librex | |
pg (= 0.11) | |
+ postgres_ext | |
rails (= 3.2.8) | |
sass-rails (~> 3.2.3) | |
thin | |
diff --git a/db/schema.rb b/db/schema.rb | |
@@ -50,7 +50,7 @@ ActiveRecord::Schema.define(:version => 20110801000003) do | |
t.text "line_type" | |
t.text "notes" | |
t.text "signatures" | |
- t.text "fprint" | |
+ t.integer "fprint", :array => true | |
t.binary "audio" | |
t.binary "mp3" | |
t.binary "png_big" |