-
## Introduction
ORM, which is short for Object-Relational Mapping, is usually used by applications to connect to databases like TiDB.
In order to bring good experience to application developers …
-
### Steps to reproduce
```ruby
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.…
-
roachtest.activerecord [failed](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Nightlies_RoachtestNightlyGceBazel/16298889?buildTab=log) with [artifacts](https://teamcity.cockroachdb.co…
-
### Problem
Currently, when defining a `has_many` or `has_one` association, you indicate what the association's targets are using `model_class`. This can be limiting. For example, given the models be…
-
This is a "structured dumping ground" for useful resources that could help refactoring our code base. I think some issues are pretty-well summarized by a teaser for Jason Swett's book ["Growing Large …
-
I just upgraded my environment to rails 4.2.5 and Ruby 2.3.0, **without changing the code or the DB**.
The following line, `csn = SocialNetwork.find_by( :iname => sn.downcase )` , running without pr…
-
While updating an app to 7.2, my CI started throwing a lot of errors around enums:
```
RuntimeError: Undeclared attribute type for enum 'post_type' in Post. Enums must be backed by a database column…
-
I am considering the use of `responds_to? ` in combination with `forward_missing_to`. However, `responds_to?` is prone to returning false negatives when used in such a way. The following is an example…
-
On OS X 10.11 (15A284), I get the following when I try to evaluate `Travis::Pro` in a Rails console:
```
[1] pry(main)> Travis::Pro
/Users/emilesilvis/.rvm/gems/ruby-2.2.3/gems/ethon-0.8.0/lib/ethon/…
-
roachtest.activerecord [failed](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Nightlies_RoachtestNightlyGceBazel/13840930?buildTab=log) with [artifacts](https://teamcity.cockroachdb.co…