Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: database_type to configuration #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lizdeika
Copy link

@lizdeika lizdeika commented Apr 4, 2019

Based on #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 lizdeika force-pushed the add-database_type-to-configuration branch from c92002c to 232352f Compare December 3, 2019 15:35
@lizdeika lizdeika force-pushed the add-database_type-to-configuration branch from 232352f to b6019ac Compare January 27, 2020 12:05
@lizdeika
Copy link
Author

Hi,
Any possibility to have this released?
Thank you

@seuros
Copy link
Member

seuros commented May 11, 2020

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

@lizdeika lizdeika force-pushed the add-database_type-to-configuration branch from b6019ac to df3446e Compare November 6, 2020 09:56
@n-rodriguez
Copy link
Contributor

IMHO this one is better #338 since it's compatible with Rails 6 multi DB support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants