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