Chris@0: ActiveRecord::Schema.define(:version => 0) do Chris@0: Chris@0: create_table :categories, :force => true do |t| Chris@0: t.column :name, :string Chris@0: t.column :parent_id, :integer Chris@0: t.column :lft, :integer Chris@0: t.column :rgt, :integer Chris@0: t.column :organization_id, :integer Chris@0: end Chris@0: Chris@0: create_table :departments, :force => true do |t| Chris@0: t.column :name, :string Chris@0: end Chris@0: Chris@0: create_table :notes, :force => true do |t| Chris@0: t.column :body, :text Chris@0: t.column :parent_id, :integer Chris@0: t.column :lft, :integer Chris@0: t.column :rgt, :integer Chris@0: t.column :notable_id, :integer Chris@0: t.column :notable_type, :string Chris@0: end Chris@0: end