diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-21 23:10:42 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-21 23:10:42 +0000 |
commit | 36baabe24c3345228995ea1bc8d0aa8bcd01297b (patch) | |
tree | a4683a5acafb801e54c1ccd97aa5893df0e9ef2b | |
parent | f371f292650480dd38d6ad23b5646fba53e472b1 (diff) | |
download | rails-36baabe24c3345228995ea1bc8d0aa8bcd01297b.tar.gz rails-36baabe24c3345228995ea1bc8d0aa8bcd01297b.tar.bz2 rails-36baabe24c3345228995ea1bc8d0aa8bcd01297b.zip |
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
-rw-r--r-- | activerecord/test/schema/schema.rb | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 724226c359..c9b7cbe97d 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -49,10 +49,6 @@ ActiveRecord::Schema.define do 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 @@ ActiveRecord::Schema.define do 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 @@ ActiveRecord::Schema.define do 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 @@ ActiveRecord::Schema.define do 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 @@ ActiveRecord::Schema.define do 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 |