aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2010-03-31 02:33:04 +0100
committerwycats <wycats@gmail.com>2010-04-12 21:31:20 -0700
commit9cea9bc7f0c104095dddc036bea7f6ecb9590075 (patch)
tree612e9c686756164fa5fedb71985f6105624137f4 /activerecord/test/schema
parentee04aea3ec1461368a72db525b325846e29b0045 (diff)
downloadrails-9cea9bc7f0c104095dddc036bea7f6ecb9590075.tar.gz
rails-9cea9bc7f0c104095dddc036bea7f6ecb9590075.tar.bz2
rails-9cea9bc7f0c104095dddc036bea7f6ecb9590075.zip
Refactor compute_type to handle situations where the correct class is already loaded
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index bec4291457..7a0cf550e0 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -99,6 +99,10 @@ ActiveRecord::Schema.define do
t.string :name
end
+ create_table :collections, :force => true do |t|
+ t.string :name
+ end
+
create_table :colnametests, :force => true do |t|
t.integer :references, :null => false
end
@@ -394,6 +398,11 @@ ActiveRecord::Schema.define do
t.integer :price
end
+ create_table :products, :force => true do |t|
+ t.references :collection
+ t.string :name
+ end
+
create_table :projects, :force => true do |t|
t.string :name
t.string :type
@@ -499,6 +508,11 @@ ActiveRecord::Schema.define do
t.column :looter_type, :string
end
+ create_table :variants, :force => true do |t|
+ t.references :product
+ t.string :name
+ end
+
create_table :vertices, :force => true do |t|
t.column :label, :string
end