1 class CreateFolders < ActiveRecord::Migration
3 create_table :folders do |t|
4 t.string :controller_name, :null => false
5 t.string :action_name, :null => false
6 t.integer :category_id, :null => false, :default => 0
7 t.integer :t, :null => false, :default => 0
11 t.integer :depth # this is optional.
15 add_index :folders , [:rgt]