2005-12-02 06:03:43 +00:00
|
|
|
ActiveRecord::Schema.define do
|
|
|
|
|
2006-03-09 17:23:57 +00:00
|
|
|
create_table :taggings, :force => true do |t|
|
|
|
|
t.column :tag_id, :integer
|
2006-03-18 22:38:49 +00:00
|
|
|
t.column :super_tag_id, :integer
|
2006-03-09 17:23:57 +00:00
|
|
|
t.column :taggable_type, :string
|
|
|
|
t.column :taggable_id, :integer
|
2005-12-02 06:03:43 +00:00
|
|
|
end
|
|
|
|
|
2006-03-09 17:23:57 +00:00
|
|
|
create_table :tags, :force => true do |t|
|
|
|
|
t.column :name, :string
|
2006-03-04 15:11:17 +00:00
|
|
|
t.column :taggings_count, :integer, :default => 0
|
2005-12-02 06:03:43 +00:00
|
|
|
end
|
|
|
|
|
2006-03-09 17:23:57 +00:00
|
|
|
create_table :categorizations, :force => true do |t|
|
|
|
|
t.column :category_id, :integer
|
|
|
|
t.column :post_id, :integer
|
|
|
|
t.column :author_id, :integer
|
2005-12-11 18:06:51 +00:00
|
|
|
end
|
|
|
|
|
2006-03-04 15:11:17 +00:00
|
|
|
add_column :posts, :taggings_count, :integer, :default => 0
|
2006-03-19 19:32:07 +00:00
|
|
|
add_column :authors, :author_address_id, :integer
|
|
|
|
|
|
|
|
create_table :author_addresses, :force => true do |t|
|
|
|
|
t.column :author_address_id, :integer
|
|
|
|
end
|
2006-03-04 15:11:17 +00:00
|
|
|
|
2005-12-02 06:03:43 +00:00
|
|
|
end
|