A simple update what I found. I dig little bit more and I think this might be cause of this behaviour:
https://github.com/jeremyevans/sequel/blob/2392145025c60d3c127bc1b921130598409f249c/lib/sequel/adapters/shared/postgres.rb#L670 This only searches for indexes that have simple relation attributes. On Tuesday, 30 March 2021 at 15:32:18 UTC+2 Robert Pawlas wrote: > > Or as well, how I use the index method might be a problem. > On Tuesday, 30 March 2021 at 15:22:36 UTC+2 Robert Pawlas wrote: > >> Hello! >> >> I found problem during dumping schema with >> >> DB.dump_schema_migration(same_db: true) >> >> The problem is indexes that include Sequel function as first parameter, >> are not being dumped. >> >> Here's sample index in create_table migration: >> >> Sequel.migration do >> change do >> create_table(:tests) do >> index Sequel.function(:lower, :name), >> name: :tests_unique_name_index, >> unique: true >> end >> end >> end >> >> What I could find until now is that this method does not load all of the >> indexes from DB: >> >> https://github.com/jeremyevans/sequel/blob/2392145025c60d3c127bc1b921130598409f249c/lib/sequel/adapters/shared/postgres.rb#L648 >> >> Best regards, >> >> Robert >> > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/d25f84e6-ffe0-422c-afcb-34c8d1d330den%40googlegroups.com.
