-
### Steps to reproduce
I originally was noticing issues trying to disable `partial_inserts` as part of upgrading to Rails 7. The oddness was that some models were failing to be created because Rail…
-
UPDATE: Code to reproduce the problem is in comments
I have a Rails project with the following models:
```
account
username
user
address
```
With the following associations:
```
class Account < Ac…
-
use jruby1.6rc1,rails3.0.1,activerecord-jdbcsqlite3-adapter,in migrate use:
ActsAsArchive.update Post
it show:
AlsoMigrate error: ActiveRecord::JDBCError: near "LIKE": syntax error:
CREATE TABLE a…
-
The example provided fails in a `has_many ... through: ...` association but `has_one ... through: ...` associations have the same behaviour.
### Steps to reproduce
```ruby
begin
require "bun…
-
Detection of issues in Ruby files is not working when running the JS version of the extension. This occurs both when running the extension on Mac in JS mode and when using the extension on Windows.
…
-
### Steps to reproduce
This example ends in error like migrations do during rollback of add_index if a index name ist given
```
require 'bundler/inline'
gemfile(true) do
gem 'activerecord', '…
-
### Environment
+ Rails 6.1.3.1
+ MySQL 5.7
### Issue
Rails command `db:create` doesn't work. After manually create db by DDL in MySQL console, I can correctly connect to the database in my Ra…
-
```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…
-
I am using attr_encrypted from a rack/ruby script and it seems like there is some weird issue with ActiveRecord and attr_encrypted.
attr_encrypted works fine and the correct values are set in the obj…
-
```
/usr/local/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (Could not find 'mysql2' (~> 0.3.10) - d…