closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

Added: database_type to configuration

Open lizdeika opened this issue 5 years ago • 3 comments

Based on https://github.com/ClosureTree/closure_tree/pull/338

Adds ability to set database_type in initializers/closure_tree_config.rb:

ClosureTree.configure do |config|
  config.database_type = :mysql
end

The type will be used across all the closure tree models in the application.

This solves problems with numeric ordering and db:create.

lizdeika avatar Apr 04 '19 14:04 lizdeika

Hi, Any possibility to have this released? Thank you

lizdeika avatar Jan 27 '20 12:01 lizdeika

How we will handle this with activerecord 6 that support multiple database.?

seuros avatar May 11 '20 13:05 seuros

IMHO this one is better https://github.com/ClosureTree/closure_tree/pull/338 since it's compatible with Rails 6 multi DB support.

n-rodriguez avatar Jan 10 '21 18:01 n-rodriguez