To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / d4 / d41f15d9b37a3eb6c6bcd52ec522bdb47635d440.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.17 KB)
| 1 | 1296:038ba2d95de8 | Chris | 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 | |||
| 24 | create_table :renamed_columns, :force => true do |t| |
||
| 25 | t.column :name, :string |
||
| 26 | t.column :mother_id, :integer |
||
| 27 | t.column :red, :integer |
||
| 28 | t.column :black, :integer |
||
| 29 | end |
||
| 30 | |||
| 31 | create_table :things, :force => true do |t| |
||
| 32 | t.column :body, :text |
||
| 33 | t.column :parent_id, :integer |
||
| 34 | t.column :lft, :integer |
||
| 35 | t.column :rgt, :integer |
||
| 36 | t.column :children_count, :integer |
||
| 37 | end |
||
| 38 | |||
| 39 | create_table :brokens, :force => true do |t| |
||
| 40 | t.column :name, :string |
||
| 41 | t.column :parent_id, :integer |
||
| 42 | t.column :lft, :integer |
||
| 43 | t.column :rgt, :integer |
||
| 44 | end |
||
| 45 | end |