aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-12 21:14:42 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-12 21:17:30 -0300
commitdc3230b156a4cfe5a8fbe3636edf0117f8e122cc (patch)
tree39d6984b72453429a1bd1752bc604fa82dce006d /activerecord/test/schema
parenta4f780947299cc35f14c9e1825278155ae88ee44 (diff)
downloadrails-dc3230b156a4cfe5a8fbe3636edf0117f8e122cc.tar.gz
rails-dc3230b156a4cfe5a8fbe3636edf0117f8e122cc.tar.bz2
rails-dc3230b156a4cfe5a8fbe3636edf0117f8e122cc.zip
Skip statement cache on through association reader
If the through class has default scopes we should skip the statement cache. Closes #20745.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 1fa824bf1d..08ac7749f9 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -131,6 +131,8 @@ ActiveRecord::Schema.define do
t.timestamps null: false
end
+ create_table :carriers, force: true
+
create_table :categories, force: true do |t|
t.string :name, null: false
t.string :type
@@ -237,6 +239,11 @@ ActiveRecord::Schema.define do
t.string :gps_location
end
+ create_table :customer_carriers, force: true do |t|
+ t.references :customer
+ t.references :carrier
+ end
+
create_table :dashboards, force: true, id: false do |t|
t.string :dashboard_id
t.string :name
@@ -683,6 +690,11 @@ ActiveRecord::Schema.define do
t.belongs_to :ship
end
+ create_table :shop_accounts, force: true do |t|
+ t.references :customer
+ t.references :customer_carrier
+ end
+
create_table :speedometers, force: true, id: false do |t|
t.string :speedometer_id
t.string :name