diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-20 08:00:52 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-20 14:13:45 -0200 |
commit | 50f00463bd8348c35cc5dad40116e21323f6822f (patch) | |
tree | c749e764ce2832b095a448e800bb4fd27576d293 /activerecord/test/schema/postgresql_specific_schema.rb | |
parent | bd87bd95646c2b94c602dff7d0a1f7e75c303e51 (diff) | |
download | rails-50f00463bd8348c35cc5dad40116e21323f6822f.tar.gz rails-50f00463bd8348c35cc5dad40116e21323f6822f.tar.bz2 rails-50f00463bd8348c35cc5dad40116e21323f6822f.zip |
Merge pull request #8276 from pwnall/pgsql_text_limits
Postgresql doesn't accepts limits on text columns
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
Diffstat (limited to 'activerecord/test/schema/postgresql_specific_schema.rb')
-rw-r--r-- | activerecord/test/schema/postgresql_specific_schema.rb | 5 |
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 34e24b5a2e..35e12b1875 100644 --- a/activerecord/test/schema/postgresql_specific_schema.rb +++ b/activerecord/test/schema/postgresql_specific_schema.rb @@ -132,5 +132,10 @@ _SQL _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 |