Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix schema.rb. Please to be testing on more than just MySQL! References

#9067.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9072 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 36baabe24c3345228995ea1bc8d0aa8bcd01297b 1 parent f371f29
@jeremy jeremy authored
Showing with 24 additions and 24 deletions.
  1. +24 −24 activerecord/test/schema/schema.rb
View
48 activerecord/test/schema/schema.rb
@@ -49,10 +49,6 @@
t.integer :category_id, :null => false
t.integer :post_id, :null => false
end
-
- create_table :clubs, :force => true do |t|
- t.string :name
- end
create_table :colnametests, :force => true do |t|
t.integer :references, :null => false
@@ -121,17 +117,6 @@
t.integer :version, :null => false, :default => 0
end
- create_table :members, :force => true do |t|
- t.string :name
- end
-
- create_table :memberships, :force => true do |t|
- t.datetime :joined_on
- t.integer :club_id, :member_id
- t.boolean :favourite, :default => false
- t.string :type
- end
-
create_table :minimalistics, :force => true do |t|
end
@@ -192,12 +177,6 @@
t.integer :post_id, :null => false
t.integer :person_id, :null => false
end
-
- create_table :sponsors, :force => true do |t|
- t.integer :club_id
- t.integer :sponsorable_id
- t.integer :sponsorable_type
- end
create_table :subscribers, :force => true, :id => false do |t|
t.string :nick, :null => false
@@ -405,7 +384,7 @@ def create_table(*args, &block)
t.integer :estimate_of_id
t.integer :price
end
-
+
[:circles, :squares, :triangles, :non_poly_ones, :non_poly_twos].each do |t|
create_table(t, :force => true) { }
end
@@ -416,12 +395,33 @@ def create_table(*args, &block)
t.string :shape_type
t.integer :shape_id
end
-
+
create_table :paint_colors, :force => true do |t|
t.integer :non_poly_one_id
end
+
create_table :paint_textures, :force => true do |t|
t.integer :non_poly_two_id
end
-
+
+ create_table :clubs, :force => true do |t|
+ t.string :name
+ end
+
+ create_table :members, :force => true do |t|
+ t.string :name
+ end
+
+ create_table :memberships, :force => true do |t|
+ t.datetime :joined_on
+ t.integer :club_id, :member_id
+ t.boolean :favourite, :default => false
+ t.string :type
+ end
+
+ create_table :sponsors, :force => true do |t|
+ t.integer :club_id
+ t.integer :sponsorable_id
+ t.integer :sponsorable_type
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.