-
## The Problem
The `tapioca` compiler for ActiveRecord models makes most columns nilable, ignoring database constraints.
This is correct on paper, because when you call `Model.new` none of those w…
-
We have a couple of models that are backed by a different DB to the majority of models in our app. A rough example is something like this:
```ruby
class MainDBThings < ApplicationRecord
end
```
`…
-
Hello,
I get error when using model extend from `yii\base\Model`. Using `yii\base\DynamicModel` return same error too. Error is `Getting unknown property: common\models\TestModel::isNewRecord`. Here…
-
Users must retire service twice to succeed.
Recently we upgraded to Najdorf-1.3 from Kasparov, and one type of our service retirement started to behave strangely.
We have automatic provisioning fo…
-
SHORTENED FOR BREVITY:
Basically, this error can occur if the reputation model is defined using invalid syntax...
HOWEVER,
It can also apparently occur when syntax is kosher according to the Github d…
-
The import method is shadowed by activerecord-import which results in this argument error:
`ArgumentError: Invalid arguments!
from /some_local_path/activerecord-import-1.2.0/lib/activerecord-import/…
-
For the last 3 months, we got 13 occurrences of similar errors originating from typed store, one example:
```
NameError: undefined method `can_perform_before_type_cast' for class `Activity' (NameE…
-
Something like: `User.find(1).merge_into(2)`
* [ ] Double check Project::MANIFEST is up-to date
Wrap everything in a transaction.
In the same way we check for whether a User `curates_data?` l…
-
In our app we have methods that read encrypted attributes from one record and save them in another record.
```
# first_name is encrypted
user = User.find(id)
other_user = User.find(other_id)
ot…
-
When create using ModelTwo it freezes rails and consume all memory of the system
``` ruby
ModelTwo.create!
```
``` ruby
class ModelOne < ActiveRecord::Base
include AASM
has_one :model_two
enu…