-
Notifications
You must be signed in to change notification settings - Fork 0
/
howto
84 lines (60 loc) · 3.04 KB
/
howto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# rails version >= 3
bash
rails new tom
cd !$
git init
git add .
git commit -m "Initial commit."
rails generate controller Pages about
rails generate controller Pages tables
method=model # model | scaffold
rails destroy model Activity
rails destroy model Funding
rails destroy model Project
rails destroy model KeyPerson
rails destroy model Person
rails destroy model Entity
rails destroy model Contractor
rails destroy model Category
rails destroy model Component
rails destroy model Qlevel
rails destroy model Technology
rails destroy model Phase
rails destroy model Milestone
rails destroy model Deliverable
rails destroy model Payment
rails destroy model Meeting
rails destroy model Stamp
rails destroy model Info
rails destroy model MonthlyReport
rails destroy model Action
rails generate $method Activity project_id:integer activity_id:integer funding_id:integer \
title:string nickname:string abstract:string contract:string funding_amount:integer start:date duration:integer
rails generate $method Funding title:string abstract:string
rails generate $method Project title:string abstract:string
rails generate $method KeyPerson person_id:integer personable_id:integer personable_type:string role:string
rails generate $method Person first:string last:string section:string role:string
rails generate $method Entity name:string description:string city:string country:string url:string
rails generate $method Contractor activity_id:integer entity_id:integer role:string
rails generate $method Category name:string abstract:string
rails generate $method Component title:string category_id:integer abstract:string activity_id:integer technology_id:integer status:string qlevel_id:integer
rails generate $method Qlevel name:string description:string
rails generate $method Technology entity_id:integer type:string size:float name:string
rails generate $method Phase name:string activity_id:integer description:string
rails generate $method Milestone title:string phase_id:integer achieved:boolean
rails generate $method Deliverable title:string number:string milestone_id:integer status:string accepted:boolean
rails generate $method Payment milestone_id:integer amount:integer invoiced:boolean paid:boolean
rails generate $method Meeting title:string venue:string milestone_id:integer
rails generate $method Stamp stampable_id:integer stampable_type:string planned:date estimated:date actual:date
rails generate $method Info informable_id:integer informable_type:string title:string text:string url:string
rails generate $method MonthlyReport activity_id:integer text:string final:boolean
rails generate $method Action activity_id:integer assignee_id:integer title:string due:date closed:date
rails generate controller Phase
# adapt: config/routes.rb
# create:
rake db:migrate
rake db:populate
git status
git add .
git commit -m ""
git push origin master