aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorVictor Costan <costan@gmail.com>2015-06-04 12:27:45 -0400
committerVictor Costan <costan@gmail.com>2015-06-04 12:38:00 -0400
commit2b2f41fd972133b8bfbbc94ebe3bec6b27a0689a (patch)
tree7c8b25bb4451139b0d43c587082ef56d59d964ee /activerecord/test/schema
parent7220ffcffd0085b3caee872102b3b28f3ca35c83 (diff)
downloadrails-2b2f41fd972133b8bfbbc94ebe3bec6b27a0689a.tar.gz
rails-2b2f41fd972133b8bfbbc94ebe3bec6b27a0689a.tar.bz2
rails-2b2f41fd972133b8bfbbc94ebe3bec6b27a0689a.zip
Fix crash when loading fixture with belongs_to association defined in abstract base class.
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 66f8f1611d..8b010f265c 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -266,6 +266,11 @@ ActiveRecord::Schema.define do
t.string :alias
end
+ create_table :doubloons, force: true do |t|
+ t.integer :pirate_id
+ t.integer :weight
+ end
+
create_table :edges, force: true, id: false do |t|
t.column :source_id, :integer, null: false
t.column :sink_id, :integer, null: false