Commit graph

10 commits

Author SHA1 Message Date
Andreas Brandl
a39cddf7b7
Add support for explicit index order
ActiveRecord supports `:order` natively, but it is skipped because of
our specific patch to support opclasses.

Relevant AR code:
https://github.com/rails/rails/blob/5-0-stable/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb#L1167
2019-01-03 15:12:49 +01:00
Jasper Maes
44fef4fe4c Remove rails 4 support in CI, Gemfiles, bin/ and config/ 2018-12-14 19:36:22 +01:00
Yorick Peterse
25ea6fdd5e
Fix deprecations in opclasses initializer
The use of `table_exists?` in the opclasses support initializer triggers
a deprecation warning. Using `data_source_exists?` removes this
deprecation.
2018-12-12 17:11:23 +01:00
Dmitriy Zaporozhets
5944e0711a
Fix undefined format_options method in SchemaDumper for MySQL db
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-26 12:03:42 +03:00
Jasper Maes
fc59df67e2 Rails 5: include opclasses in rails 5 schema dump 2018-08-29 21:56:18 +02:00
Jan Provaznik
58d69d54c5 Add missing :comment attribute
In Rails 5 IndexDefinition contains also `:comment` attribute.
2018-06-10 09:50:32 +02:00
Jasper Maes
85a7e0813e Support rails5 in postgres indexes function and fix some migrations 2018-06-05 08:06:35 +02:00
Greg Stark
46114fca5d Fix regular expression used for opclasses to not be confused by partial index clause 2017-09-19 11:52:14 +01:00
Yorick Peterse
12082db41e Disable Rubocop for PostgreSQL patches
This code is mostly a copy-paste from existing pull requests so there's
no point in running Rubocop on it.
2016-03-11 15:25:23 -05:00
Yorick Peterse
49e122df85 Backport Rails support for PostgreSQL opclasses
This is needed to support creating/dumping/loading indexes that use the
gin_trgm_ops operator class on PostgreSQL. These changes are taken from
Rails pull request https://github.com/rails/rails/pull/19090.
2016-03-11 15:25:22 -05:00