aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorKassio Borges <kassioborgesm@gmail.com>2014-05-13 11:25:21 -0300
committerKassio Borges <kassioborgesm@gmail.com>2014-05-13 11:26:46 -0300
commit8f6e5986acddf1c126bebf27774d7c7866bb4fa7 (patch)
tree759a0bddecfba7e35e7feb2a5fdca4acc21362dc /activerecord/test/schema/schema.rb
parentc6c164238305b1aaebff54758035f676feeeb06e (diff)
downloadrails-8f6e5986acddf1c126bebf27774d7c7866bb4fa7.tar.gz
rails-8f6e5986acddf1c126bebf27774d7c7866bb4fa7.tar.bz2
rails-8f6e5986acddf1c126bebf27774d7c7866bb4fa7.zip
Fix how to compute class name on habtm namespaced.
Thank's for @laurocaetano for the help with tests. :smiley: Fixes #14709
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index da3074e90f..a78074d530 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -62,6 +62,14 @@ ActiveRecord::Schema.define do
t.string :name
end
+ create_table :articles, force: true do |t|
+ end
+
+ create_table :articles_magazines, force: true do |t|
+ t.references :article
+ t.references :magazine
+ end
+
create_table :audit_logs, force: true do |t|
t.column :message, :string, null: false
t.column :developer_id, :integer, null: false
@@ -385,6 +393,9 @@ ActiveRecord::Schema.define do
t.column :custom_lock_version, :integer
end
+ create_table :magazines, force: true do |t|
+ end
+
create_table :mateys, id: false, force: true do |t|
t.column :pirate_id, :integer
t.column :target_id, :integer