annotate vendor/plugins/awesome_nested_set/test/db/schema.rb @ 779:06a9d1cf5e15
feature_14
Addresses Bug #331 - using a remote form to submit the "filters".
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Thu, 17 Nov 2011 23:34:18 +0000 |
parents |
513646585e45 |
children |
|
rev |
line source |
Chris@0
|
1 ActiveRecord::Schema.define(:version => 0) do
|
Chris@0
|
2
|
Chris@0
|
3 create_table :categories, :force => true do |t|
|
Chris@0
|
4 t.column :name, :string
|
Chris@0
|
5 t.column :parent_id, :integer
|
Chris@0
|
6 t.column :lft, :integer
|
Chris@0
|
7 t.column :rgt, :integer
|
Chris@0
|
8 t.column :organization_id, :integer
|
Chris@0
|
9 end
|
Chris@0
|
10
|
Chris@0
|
11 create_table :departments, :force => true do |t|
|
Chris@0
|
12 t.column :name, :string
|
Chris@0
|
13 end
|
Chris@0
|
14
|
Chris@0
|
15 create_table :notes, :force => true do |t|
|
Chris@0
|
16 t.column :body, :text
|
Chris@0
|
17 t.column :parent_id, :integer
|
Chris@0
|
18 t.column :lft, :integer
|
Chris@0
|
19 t.column :rgt, :integer
|
Chris@0
|
20 t.column :notable_id, :integer
|
Chris@0
|
21 t.column :notable_type, :string
|
Chris@0
|
22 end
|
Chris@0
|
23 end
|