ActiveRecord MismatchedForeignKey class MismatchedForeignKey Ruby on Rails 6.0.6 Since v5.2.8.1 Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2 Compare with: (choosing a version navigates to the comparison) Choose a version v5.2.8.1 · same v6.1.7.10 · same v7.0.10 · same v7.1.6 · same v7.2.3 · same v8.0.4 · same v8.1.2 · same Raised when a foreign key constraint cannot be added because the column type does not match the referenced column type. Inherits from ActiveRecord::StatementInvalid Methods (defined here) self. new Methods (inherited) From ActiveRecord::StatementInvalid (1) self. new On this page Methods Inherited methods (1) Support Bug Reports can be filed for the Ruby on Rails project on GitHub. Feature requests should be discussed on the rubyonrails-core forum. License Released under the MIT license.