To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / awesome_nested_set / test / db / schema.rb @ 442:753f1380d6bc
History | View | Annotate | Download (592 Bytes)
| 1 |
ActiveRecord::Schema.define(:version => 0) do |
|---|---|
| 2 |
|
| 3 |
create_table :categories, :force => true do |t| |
| 4 |
t.column :name, :string |
| 5 |
t.column :parent_id, :integer |
| 6 |
t.column :lft, :integer |
| 7 |
t.column :rgt, :integer |
| 8 |
t.column :organization_id, :integer |
| 9 |
end
|
| 10 |
|
| 11 |
create_table :departments, :force => true do |t| |
| 12 |
t.column :name, :string |
| 13 |
end
|
| 14 |
|
| 15 |
create_table :notes, :force => true do |t| |
| 16 |
t.column :body, :text |
| 17 |
t.column :parent_id, :integer |
| 18 |
t.column :lft, :integer |
| 19 |
t.column :rgt, :integer |
| 20 |
t.column :notable_id, :integer |
| 21 |
t.column :notable_type, :string |
| 22 |
end
|
| 23 |
end
|