-
```ruby
class Post < ActiveRecord::Base
enum status: %i[draft published]
end
```
The error we get is:
```
Undeclared attribute type for enum 'status'. Enums must be backed by a database c…
-
With Rails 4.0 beta1, devise loads the user model which, in turn, loads canard which checks it for a role matrix. This is fine if the database exists, but as many of us know from painful experience He…
-
Hi @januszm - I'll be updating a monolithic app from Rails 4.1 to 4.2 and eventually all the way to Rails 5. The app makes heavy use of this gem, so I'll begin helping with contributions to nudge this…
-
I'm using MySQL and have a table with a `MULTIPOLYGON` type. It seems like schema_plus can't dump the table definition as it has no knowledge of the types to use, though I'm not sure.
Perhaps support…
ghost updated
11 years ago
-
Hi,
Can it be used with MsSQL Server ? Possibly using https://github.com/rails-sqlserver/activerecord-sqlserver-adapter ? I actually installed the sqlserver-adapter and then when i do
```
require…
-
So I'm just trying to test deploying a bare bones Rails app with a postgresql container linked up. I keep getting time outs even though the db is up and running.
``` shell
$ dokku version
0.3.26
```…
-
ActiveRecord::StatementInvalid in MapsController#geosearch
PG::Error: ERROR: Operation on mixed SRID geometries
: SELECT bbox, title, description, updated_at, id, date_depicted FROM "maps" WHERE (ST…
-
I might be missing something, but I spent some time now trying to find why this is failing:
```ruby
class FooTest < Minitest::Test
def test_email
foo = User.new(name: 'Arthur')
foo.emai…
-
As I can see in [source](https://github.com/charkost/prosopite/blob/main/lib/prosopite.rb#L109) prosopite uses `ActiveRecord::Base` to define database adapter. If you have multiple databases you proba…
-
Hi everyone!
I ran into an issue with a counter cached `belongs_to` association.
In short, when I have an association with only `touch: true`, it works as expected:
```ruby
class Comment < Activ…