rails_workflow 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/db/migrate/20150630174700_create_workflow_processes.rb +8 -8
- data/lib/generators/rails_workflow/install/templates/create_workflow_processes.rb +8 -8
- data/lib/rails_workflow/version.rb +1 -1
- data/spec/dummy/db/schema.rb +48 -48
- data/spec/dummy/log/test.log +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1455c2f7649e01639b50094825468cefca4117f1
|
4
|
+
data.tar.gz: fedbbf71998fa72e3ea6f91ff814b769a01646bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3510938b11d1eeab1d7ed7b11e2f6758870b5c93c7ce6213d93a836c389f2b4d2ca38b82c7e19e044dcf60ef54a47898ea95c63310248f1b57a2b5990701b4b4
|
7
|
+
data.tar.gz: cd6e8b87b0cac21bc89810ae42b13939042fab86599d153277d334d60ab732ae554f46c434e4388b3ceebb506d85a12575be3f44731bb5be1003c9d93792ecbd
|
@@ -25,15 +25,15 @@ class CreateWorkflowProcesses < ActiveRecord::Migration
|
|
25
25
|
|
26
26
|
def create_indexes
|
27
27
|
[
|
28
|
-
[:rails_workflow_contexts, %i[parent_id parent_type]],
|
29
|
-
[:rails_workflow_errors, %i[parent_id parent_type]],
|
30
|
-
%i[rails_workflow_operation_templates process_template_id],
|
31
|
-
%i[rails_workflow_operation_templates uuid],
|
32
|
-
%i[rails_workflow_process_templates uuid],
|
33
|
-
%i[rails_workflow_operations process_id],
|
34
|
-
%i[rails_workflow_operations template_id]
|
28
|
+
[:rails_workflow_contexts, %i[parent_id parent_type], :rw_context_parents],
|
29
|
+
[:rails_workflow_errors, %i[parent_id parent_type], :rw_error_parents],
|
30
|
+
%i[rails_workflow_operation_templates process_template_id rw_ot_to_pt],
|
31
|
+
%i[rails_workflow_operation_templates uuid rw_ot_uuids],
|
32
|
+
%i[rails_workflow_process_templates uuid rw_pt_uuids],
|
33
|
+
%i[rails_workflow_operations process_id rw_o_process_ids],
|
34
|
+
%i[rails_workflow_operations template_id rw_o_template_ids]
|
35
35
|
].each do |idx|
|
36
|
-
add_index idx[0], idx[1] unless index_exists? idx[0], idx[1]
|
36
|
+
add_index idx[0], idx[1], name: idx[2] unless index_exists? idx[0], idx[1]
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -25,15 +25,15 @@ class CreateWorkflowProcesses < ActiveRecord::Migration
|
|
25
25
|
|
26
26
|
def create_indexes
|
27
27
|
[
|
28
|
-
[:rails_workflow_contexts, %i[parent_id parent_type]],
|
29
|
-
[:rails_workflow_errors, %i[parent_id parent_type]],
|
30
|
-
%i[rails_workflow_operation_templates process_template_id],
|
31
|
-
%i[rails_workflow_operation_templates uuid],
|
32
|
-
%i[rails_workflow_process_templates uuid],
|
33
|
-
%i[rails_workflow_operations process_id],
|
34
|
-
%i[rails_workflow_operations template_id]
|
28
|
+
[:rails_workflow_contexts, %i[parent_id parent_type], :rw_context_parents],
|
29
|
+
[:rails_workflow_errors, %i[parent_id parent_type], :rw_error_parents],
|
30
|
+
%i[rails_workflow_operation_templates process_template_id rw_ot_to_pt],
|
31
|
+
%i[rails_workflow_operation_templates uuid rw_ot_uuids],
|
32
|
+
%i[rails_workflow_process_templates uuid rw_pt_uuids],
|
33
|
+
%i[rails_workflow_operations process_id rw_o_process_ids],
|
34
|
+
%i[rails_workflow_operations template_id rw_o_template_ids]
|
35
35
|
].each do |idx|
|
36
|
-
add_index idx[0], idx[1] unless index_exists? idx[0], idx[1]
|
36
|
+
add_index idx[0], idx[1], name: idx[2] unless index_exists? idx[0], idx[1]
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -19,64 +19,66 @@ ActiveRecord::Schema.define(version: 20150630174700) do
|
|
19
19
|
create_table "leads", force: :cascade do |t|
|
20
20
|
t.integer "sales_contact_id"
|
21
21
|
t.text "offer"
|
22
|
-
t.string "name"
|
22
|
+
t.string "name"
|
23
23
|
t.datetime "created_at"
|
24
24
|
t.datetime "updated_at"
|
25
25
|
end
|
26
26
|
|
27
27
|
create_table "rails_workflow_contexts", force: :cascade do |t|
|
28
28
|
t.integer "parent_id"
|
29
|
-
t.string "parent_type"
|
29
|
+
t.string "parent_type"
|
30
30
|
t.text "body"
|
31
31
|
t.datetime "created_at"
|
32
32
|
t.datetime "updated_at"
|
33
33
|
end
|
34
34
|
|
35
|
-
add_index "rails_workflow_contexts", ["parent_id", "parent_type"], name: "
|
35
|
+
add_index "rails_workflow_contexts", ["parent_id", "parent_type"], name: "rw_context_parents", using: :btree
|
36
36
|
|
37
37
|
create_table "rails_workflow_errors", force: :cascade do |t|
|
38
|
-
t.string "message"
|
38
|
+
t.string "message"
|
39
39
|
t.text "stack_trace"
|
40
40
|
t.integer "parent_id"
|
41
|
-
t.string "parent_type"
|
41
|
+
t.string "parent_type"
|
42
42
|
t.datetime "created_at"
|
43
43
|
t.datetime "updated_at"
|
44
44
|
t.boolean "resolved"
|
45
45
|
end
|
46
46
|
|
47
|
-
add_index "rails_workflow_errors", ["parent_id", "parent_type"], name: "
|
47
|
+
add_index "rails_workflow_errors", ["parent_id", "parent_type"], name: "rw_error_parents", using: :btree
|
48
48
|
|
49
49
|
create_table "rails_workflow_operation_templates", force: :cascade do |t|
|
50
|
-
t.string "title"
|
50
|
+
t.string "title"
|
51
|
+
t.string "version"
|
52
|
+
t.string "uuid"
|
53
|
+
t.string "tag"
|
51
54
|
t.text "source"
|
52
55
|
t.text "dependencies"
|
53
|
-
t.string "operation_class"
|
56
|
+
t.string "operation_class"
|
54
57
|
t.integer "process_template_id"
|
55
58
|
t.datetime "created_at"
|
56
59
|
t.datetime "updated_at"
|
57
60
|
t.boolean "async"
|
58
61
|
t.integer "child_process_id"
|
59
62
|
t.integer "assignment_id"
|
60
|
-
t.string "assignment_type"
|
61
|
-
t.string "kind"
|
62
|
-
t.string "role"
|
63
|
-
t.string "group"
|
63
|
+
t.string "assignment_type"
|
64
|
+
t.string "kind"
|
65
|
+
t.string "role"
|
66
|
+
t.string "group"
|
64
67
|
t.text "instruction"
|
65
|
-
t.boolean "is_background"
|
66
|
-
t.string "type"
|
67
|
-
t.string "partial_name"
|
68
|
-
t.string "version"
|
69
|
-
t.string "tag"
|
70
|
-
t.uuid "uuid"
|
68
|
+
t.boolean "is_background"
|
69
|
+
t.string "type"
|
70
|
+
t.string "partial_name"
|
71
71
|
end
|
72
72
|
|
73
|
-
add_index "rails_workflow_operation_templates", ["process_template_id"], name: "
|
74
|
-
add_index "rails_workflow_operation_templates", ["uuid"], name: "
|
73
|
+
add_index "rails_workflow_operation_templates", ["process_template_id"], name: "rw_ot_to_pt", using: :btree
|
74
|
+
add_index "rails_workflow_operation_templates", ["uuid"], name: "rw_ot_uuids", using: :btree
|
75
75
|
|
76
76
|
create_table "rails_workflow_operations", force: :cascade do |t|
|
77
77
|
t.integer "status"
|
78
78
|
t.boolean "async"
|
79
|
-
t.string "
|
79
|
+
t.string "version"
|
80
|
+
t.string "tag"
|
81
|
+
t.string "title"
|
80
82
|
t.datetime "created_at"
|
81
83
|
t.datetime "updated_at"
|
82
84
|
t.integer "process_id"
|
@@ -84,66 +86,64 @@ ActiveRecord::Schema.define(version: 20150630174700) do
|
|
84
86
|
t.text "dependencies"
|
85
87
|
t.integer "child_process_id"
|
86
88
|
t.integer "assignment_id"
|
87
|
-
t.string "assignment_type"
|
89
|
+
t.string "assignment_type"
|
88
90
|
t.datetime "assigned_at"
|
89
|
-
t.string "type"
|
91
|
+
t.string "type"
|
90
92
|
t.boolean "is_active"
|
91
93
|
t.datetime "completed_at"
|
92
94
|
t.boolean "is_background"
|
93
|
-
t.string "version"
|
94
|
-
t.string "tag"
|
95
95
|
end
|
96
96
|
|
97
|
-
add_index "rails_workflow_operations", ["process_id"], name: "
|
98
|
-
add_index "rails_workflow_operations", ["template_id"], name: "
|
97
|
+
add_index "rails_workflow_operations", ["process_id"], name: "rw_o_process_ids", using: :btree
|
98
|
+
add_index "rails_workflow_operations", ["template_id"], name: "rw_o_template_ids", using: :btree
|
99
99
|
|
100
100
|
create_table "rails_workflow_process_templates", force: :cascade do |t|
|
101
|
-
t.string "title"
|
101
|
+
t.string "title"
|
102
102
|
t.text "source"
|
103
|
-
t.string "
|
104
|
-
t.string "process_class", limit: 255
|
105
|
-
t.datetime "created_at"
|
106
|
-
t.datetime "updated_at"
|
107
|
-
t.string "type", limit: 255
|
108
|
-
t.string "partial_name", limit: 255
|
103
|
+
t.string "uuid"
|
109
104
|
t.string "version"
|
110
105
|
t.string "tag"
|
111
|
-
t.
|
106
|
+
t.string "manager_class"
|
107
|
+
t.string "process_class"
|
108
|
+
t.datetime "created_at"
|
109
|
+
t.datetime "updated_at"
|
110
|
+
t.string "type"
|
111
|
+
t.string "partial_name"
|
112
112
|
end
|
113
113
|
|
114
|
-
add_index "rails_workflow_process_templates", ["uuid"], name: "
|
114
|
+
add_index "rails_workflow_process_templates", ["uuid"], name: "rw_pt_uuids", using: :btree
|
115
115
|
|
116
116
|
create_table "rails_workflow_processes", force: :cascade do |t|
|
117
117
|
t.integer "status"
|
118
|
+
t.string "version"
|
119
|
+
t.string "tag"
|
118
120
|
t.boolean "async"
|
119
|
-
t.string "title"
|
121
|
+
t.string "title"
|
120
122
|
t.datetime "created_at"
|
121
123
|
t.datetime "updated_at"
|
122
124
|
t.integer "template_id"
|
123
|
-
t.string "type"
|
124
|
-
t.string "version"
|
125
|
-
t.string "tag"
|
125
|
+
t.string "type"
|
126
126
|
end
|
127
127
|
|
128
128
|
create_table "sales_contacts", force: :cascade do |t|
|
129
129
|
t.text "message"
|
130
|
-
t.string "email"
|
130
|
+
t.string "email"
|
131
131
|
t.datetime "created_at"
|
132
132
|
t.datetime "updated_at"
|
133
133
|
end
|
134
134
|
|
135
135
|
create_table "users", force: :cascade do |t|
|
136
|
-
t.string "email",
|
137
|
-
t.string "encrypted_password",
|
138
|
-
t.string "reset_password_token"
|
136
|
+
t.string "email", default: "", null: false
|
137
|
+
t.string "encrypted_password", default: "", null: false
|
138
|
+
t.string "reset_password_token"
|
139
139
|
t.datetime "reset_password_sent_at"
|
140
140
|
t.datetime "remember_created_at"
|
141
|
-
t.integer "sign_in_count",
|
141
|
+
t.integer "sign_in_count", default: 0, null: false
|
142
142
|
t.datetime "current_sign_in_at"
|
143
143
|
t.datetime "last_sign_in_at"
|
144
|
-
t.
|
145
|
-
t.
|
146
|
-
t.string "role"
|
144
|
+
t.string "current_sign_in_ip"
|
145
|
+
t.string "last_sign_in_ip"
|
146
|
+
t.string "role"
|
147
147
|
t.datetime "created_at"
|
148
148
|
t.datetime "updated_at"
|
149
149
|
end
|
data/spec/dummy/log/test.log
CHANGED
Binary file
|