-
Can someone give me an example active record connection?
ActiveRecord::Base.establish_connection(
:adapter=> "what goes here??",
:host => "AS400_name_or_ip",
:database=> "what goes here?",
:username…
-
In my model there was statement like:
```ruby
establish_connection "my_connection_#{ Rails.env }"
```
In this case there was used [multiverse](https://github.com/ankane/multiverse) gem to conf…
-
class Recommendation < ActiveRecord::Base
acts_as_restful_list :scope => :list
end
on postgres:
Recommendation.destroy_all returns
ActiveRecord::StatementInvalid: PGError: ERROR: syntax error at…
-
I have a working Pundit setup, but I'm now trying to put my pundit policies under the `Admin` namespace (`config.pundit_policy_namespace = :admin`).
I'm decorating some objects with a decorator cla…
-
This came up during development of the ActiveRecord adapter for CockroachDB. Part of the tool relies on this Postgres behavior. (It's not critical to functionality, but just means some queries may not…
-
Hi,
I'm running into the following problem after running `bundle exec rake parallel:create parallel:prepare parallel:spec`
```
2019-05-08 11:11:16
api
Created database 'app_test2'
2019-05-08…
-
### Description
The `succ` call described in https://github.com/thoughtbot/shoulda-matchers/issues/854 fails to match when the `type` column being used in STI is an enumerable, because that col…
-
Vulnerable Library - rails-6.0.0.gem
Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention …
-
It's always been possible to have connections to multiple databases of different types specified in `database.yml` and used through `establish_connection`. In Rails 6 this was expanded to support prim…
mhw updated
12 months ago
-
## Issue
Rails 6 introduced [`upsert_all`](https://apidock.com/rails/v6.0.0/ActiveRecord/Persistence/ClassMethods/upsert_all) and the SQL Server adapter does not implement it yet.
There's no suc…