aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorVictor Costan <costan@gmail.com>2012-11-19 22:38:19 -0500
committerVictor Costan <costan@gmail.com>2012-11-20 10:59:40 -0500
commita8a60e92409620f795d04bc720f1dd120d6ec7e2 (patch)
tree197153a76cd2821e8ceaed32c948e02ac9923064 /activerecord/test/schema
parentabb38feac84da59f6686d9abcce61d2a9a64efa9 (diff)
downloadrails-a8a60e92409620f795d04bc720f1dd120d6ec7e2.tar.gz
rails-a8a60e92409620f795d04bc720f1dd120d6ec7e2.tar.bz2
rails-a8a60e92409620f795d04bc720f1dd120d6ec7e2.zip
Postgresql doesn't accepts limits on text columns.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/postgresql_specific_schema.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb
index d0e7338f15..0cfde83778 100644
--- a/activerecord/test/schema/postgresql_specific_schema.rb
+++ b/activerecord/test/schema/postgresql_specific_schema.rb
@@ -192,5 +192,10 @@ end
_SQL
rescue #This version of PostgreSQL either has no XML support or is was not compiled with XML support: skipping table
end
+
+ create_table :limitless_fields, force: true do |t|
+ t.binary :binary, limit: 100_000
+ t.text :text, limit: 100_000
+ end
end