aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorSammy Larbi <sam@codeodor.com>2014-10-08 15:58:11 -0500
committerSammy Larbi <sam@codeodor.com>2014-11-09 11:56:07 -0600
commitf43f56e16e99dae083cf1400a48c236d1af265d4 (patch)
treef9d346387343f2c4b5241d2d7296993cbb47ed43 /activerecord/test/schema
parent47704af54d51b240f733c596ebb39a033aa698cd (diff)
downloadrails-f43f56e16e99dae083cf1400a48c236d1af265d4.tar.gz
rails-f43f56e16e99dae083cf1400a48c236d1af265d4.tar.bz2
rails-f43f56e16e99dae083cf1400a48c236d1af265d4.zip
Ensure HABTM relationships produce valid class names (Fixes #17119)
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 539a0d2a49..720a127585 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -228,6 +228,11 @@ ActiveRecord::Schema.define do
t.integer :extendedWarranty, null: false
end
+ create_table :computers_developers, id: false, force: true do |t|
+ t.references :computer
+ t.references :developer
+ end
+
create_table :contracts, force: true do |t|
t.integer :developer_id
t.integer :company_id