2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/generators/dummy/templates/migrations/create_other_nodes.rb', line 2
def change
create_table "other_nodes", :force => true do |t|
t.string "name"
t.string "slug"
t.integer "parent_id"
t.integer "lft"
t.integer "rgt"
t.integer "depth"
t.string "locale", :limit => 6
t.string "content_type"
t.integer "content_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "item_position"
t.boolean 'active', :null => false, :default => true
t.text 'description'
end
add_index :other_nodes, :parent_id
add_index :other_nodes, [:content_type, :content_id]
add_index :other_nodes, :lft
add_index :other_nodes, :rgt
add_index :other_nodes, :depth
add_index :other_nodes, :slug
add_index :other_nodes, :name
add_index :other_nodes, :active
add_index :other_nodes, :locale
end
|