OSDN Git Service

initialize repository
[traxi/time_frame.git] / spec / db / schema.rb
1 # -*- coding: utf-8 -*-
2
3 ActiveRecord::Schema.define(:version => 0) do
4   create_table "companies", :force => true do |t|
5     t.string  "key",                     :null => false
6     t.string  "code",                    :null => false
7     t.string  "name",                    :null => false
8   end
9
10   create_table "company_members", :force => true do |t|
11     t.integer "company_id",                :null => false
12     t.integer "person_id",                 :null => false
13     t.string  "inception"
14     t.string  "expiry"
15   end
16
17   create_table "people", :force => true do |t|
18     t.string  "name",                       :null => false
19     t.string  "mail_address"
20   end
21
22   create_table :tickets, :force => true do |t|
23     t.datetime :inception
24     t.datetime :expiry
25   end
26
27   create_table :articles, :force => true do |t|
28     t.timestamp :inception
29     t.timestamp :expiry
30   end
31
32   create_table :comments, :force => true do |t|
33     t.time :inception
34     t.time :expiry
35   end
36
37   create_table :posts, :force => true do |t|
38     t.date :start_date
39     t.date :end_date
40   end
41 end
42