secondbase icon indicating copy to clipboard operation
secondbase copied to clipboard

Seamless second database integration for Rails.

Results 24 secondbase issues
Sort by recently updated
recently updated
newest added

Added rails 5.2.x for appraisal tests. ### Changes For Schemas, 5.2.x seems to use a different schema version syntax: for example from `version: 20151202075826` to `version: 2015_12_02_075826`. There were also...

Hello, I want to alert when add new record in Second Base model, with callback method after_create, but nothing to do. What happend?

When you are developing rails engine which has connects with two databases you don't have ordinary rails tasks like `db:migrate` `db:structure:load` etc. They are moved into `app` namespace. so instead...

With a Rails 5.2 app that uses `config.active_record.schema_format = :sql`, when I run `rails db:second_base:migrate` I get a `mysqldump` error. It appears that it is not correctly parsing the user/password...

ActiveRecord task db:migrate loads environment and config `activerecord-5.1.4/lib/active_record/railties/databases.rake:56` ```ruby desc "Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)." task migrate: [:environment, :load_config] do ActiveRecord::Tasks::DatabaseTasks.migrate db_namespace["_dump"].invoke end ``` And SecondBase task db:second_base:migrate...

Invoking `rake db:secondbase:migrate` or `rake db:secondbase:rollback` causes `secondbase/schema.rb` to be overwritten by primary database schema (in place of secondary). Invoking `rake db:migrate` after this fixes this and causes proper schema...

Hi, Amazing gem, i had like two database to connect to and this did save me. However, i'm having a terrible performance issue. Upon each request to the server, on...

I'm trying to access both databases in a secondbase migration to transfer data between the two. Unfortunately, ActiveRecord::Base.connection is pointing at the same connection as SecondBase::Base.connection. Thoughts on how I...

I noticed this when using Secondbase with ActiveAdmin. The change occurred 10 days in this commit. https://github.com/activerecord-hackery/ransack/commit/d44575506ccc7cb00e618256707ed53732a07bca As you can see, moving from `schema_cache = @engine.connection.schema_cache` to `schema_cache = ::ActiveRecord::Base.connection.schema_cache`...

Maybe now that we have a solid way of doing generators, we can make a model generator. Maybe this would be an easy sub class too. What may be hard...