aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/db_definitions
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/db_definitions')
-rw-r--r--activerecord/test/fixtures/db_definitions/schema.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb
index f2e9eacb08..53aa7c1967 100644
--- a/activerecord/test/fixtures/db_definitions/schema.rb
+++ b/activerecord/test/fixtures/db_definitions/schema.rb
@@ -1,20 +1,20 @@
ActiveRecord::Schema.define do
- create_table "taggings", :force => true do |t|
- t.column "tag_id", :integer
- t.column "taggable_type", :string
- t.column "taggable_id", :integer
+ create_table :taggings, :force => true do |t|
+ t.column :tag_id, :integer
+ t.column :taggable_type, :string
+ t.column :taggable_id, :integer
end
- create_table "tags", :force => true do |t|
- t.column "name", :string
+ create_table :tags, :force => true do |t|
+ t.column :name, :string
t.column :taggings_count, :integer, :default => 0
end
- create_table "categorizations", :force => true do |t|
- t.column "category_id", :integer
- t.column "post_id", :integer
- t.column "author_id", :integer
+ create_table :categorizations, :force => true do |t|
+ t.column :category_id, :integer
+ t.column :post_id, :integer
+ t.column :author_id, :integer
end
add_column :posts, :taggings_count, :integer, :default => 0