aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2019-06-19 13:04:32 +0200
committerGitHub <noreply@github.com>2019-06-19 13:04:32 +0200
commitaae270de9e0862f31b14642908472d235a17936f (patch)
tree5767421c16e244e15de4043afaa2d8f7a539c8c5 /activerecord/test/models
parentaeba121a83965d242ed6d7fd46e9c166079a3230 (diff)
parent17acb771d815f030ac1cf36b1af4050f02816c39 (diff)
downloadrails-aae270de9e0862f31b14642908472d235a17936f.tar.gz
rails-aae270de9e0862f31b14642908472d235a17936f.tar.bz2
rails-aae270de9e0862f31b14642908472d235a17936f.zip
Merge pull request #35891 from Shopify/schema-cache-deduplication
Deduplicate various Active Record schema cache structures
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/contact.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/activerecord/test/models/contact.rb b/activerecord/test/models/contact.rb
index 6e02ff199b..d5f6f00691 100644
--- a/activerecord/test/models/contact.rb
+++ b/activerecord/test/models/contact.rb
@@ -10,14 +10,14 @@ module ContactFakeColumns
table_name => "id"
}
- column :id, :integer
- column :name, :string
- column :age, :integer
- column :avatar, :binary
- column :created_at, :datetime
- column :awesome, :boolean
- column :preferences, :string
- column :alternative_id, :integer
+ column :id, "integer"
+ column :name, "string"
+ column :age, "integer"
+ column :avatar, "binary"
+ column :created_at, "datetime"
+ column :awesome, "boolean"
+ column :preferences, "string"
+ column :alternative_id, "integer"
serialize :preferences
@@ -37,7 +37,7 @@ end
class ContactSti < ActiveRecord::Base
extend ContactFakeColumns
- column :type, :string
+ column :type, "string"
def type; "ContactSti" end
end