-
Hi, guys!
I have the following models:
```ruby
ActiveRecord::Schema.define do
create_table "apartments", force: true do |t|
t.integer "house_id", null: false
t.integer "number"…
-
Trying to use with_uuid 0.2.0 with rails 4.0.2 and ruby 1.9.3, I built a simple test app model and migration:
```
class TestModel < ActiveRecord::Base
include WithUuid::Model
end
```
```
class Cre…
-
When I run `rake db:generate_trigger_migration` for my Rails 6.0 app I get "Nothing to do" even if I added triggers to a model.
This is tied to this issue : https://github.com/rails/rails/issues/37…
-
How can i define many to many relationship?
When i set has_many through relationship, console says this:
`NoMethodError: undefined method relation_delegate_class for Permission:Class
from lib/ruby/gem…
gioch updated
7 years ago
-
Hi,
I've built a crud app with mootensai/yii2-enhanced-gii, there are related tables by foreign keys (n:1, n:m).
In the case I got an validation error, after pressing update a second time the ap…
-
With an extremely simple model and spec:
class User < ActiveRecord::Base
validates_uniqueness_of :username
end
describe User do
should_validate_uniqueness_of :username
end
The following error is…
-
We run a large app where 90% of our app is not using Apartment. We really only use it for two tables. This makes config.excluded_models not work so well for us as ever new model we add we have to go a…
-
### Steps to reproduce
In a rails app that uses the mysql2 connection adapter run the following snippet.
```ruby
ActiveRecord::Base.sanitize_sql(["LIMIT :offset, :per_page", { offset: 12, p…
-
I have setup devise_token_auth for multiple models( User and Admin). I am getting auth header for User sign in but not for admin sign in.
```
devise (4.4.3)
devise_token_auth (0.1.43)
active…
-
I just found this gem. It's exactly what I need! Thank you!
I have several models that have pretty-much the same enum.
I'd like to have a single error message for all of these enums.
Is it poss…