aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-04-28 15:51:51 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-04 18:06:06 +0300
commitdf94dabb374de5a109de0756c4c19b18375cd5af (patch)
tree3bd1bab2ea60465df572ca371df9774f59c9f659 /activerecord/test/schema
parent76fc205f9970208d597774095eccdaf07559803b (diff)
downloadrails-df94dabb374de5a109de0756c4c19b18375cd5af.tar.gz
rails-df94dabb374de5a109de0756c4c19b18375cd5af.tar.bz2
rails-df94dabb374de5a109de0756c4c19b18375cd5af.zip
Fix for activerecord join dependency instantiate bug
use only object_id instead parent class and parent id test cases assert_equal use table name in references fix minor problems
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 7b42f8a4a5..1811a5d326 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -258,6 +258,7 @@ ActiveRecord::Schema.define do
t.datetime :updated_at
t.datetime :created_on
t.datetime :updated_on
+ t.integer :mentor_id
end
create_table :developers_projects, force: true, id: false do |t|
@@ -437,6 +438,10 @@ ActiveRecord::Schema.define do
t.string :name
end
+ create_table :mentors, force: true do |t|
+ t.string :name
+ end
+
create_table :minivans, force: true, id: false do |t|
t.string :minivan_id
t.string :name
@@ -624,6 +629,7 @@ ActiveRecord::Schema.define do
create_table :projects, force: true do |t|
t.string :name
t.string :type
+ t.integer :mentor_id
end
create_table :randomly_named_table1, force: true do |t|