rails_workflow 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c07990497523e329c81feb05d053eb3954244513
4
- data.tar.gz: 4a0ff979e6fa4d83a589ac544594949b6148f9b3
3
+ metadata.gz: 1455c2f7649e01639b50094825468cefca4117f1
4
+ data.tar.gz: fedbbf71998fa72e3ea6f91ff814b769a01646bc
5
5
  SHA512:
6
- metadata.gz: e9b13eb3223068b3db3fbbad1a2f1a42fb33f9af89f1eb9809911bb1b4b284188c6ae5b36b8e95a4c3043a8a36e365861a7d586d5754c7738513fd13226f35df
7
- data.tar.gz: 3adbc1f3b1a9547aa6dc43e085e42800433ff148115f252499d1966af8088387a2cf3ff18d70514eba45e0499786070ed2f25f2883af305ebb68224f46ff11f0
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsWorkflow
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
@@ -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", limit: 255
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", limit: 255
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: "index_rails_workflow_contexts_on_parent_id_and_parent_type", using: :btree
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", limit: 255
38
+ t.string "message"
39
39
  t.text "stack_trace"
40
40
  t.integer "parent_id"
41
- t.string "parent_type", limit: 255
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: "index_rails_workflow_errors_on_parent_id_and_parent_type", using: :btree
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", limit: 255
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", limit: 255
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", limit: 255
61
- t.string "kind", limit: 255
62
- t.string "role", limit: 255
63
- t.string "group", limit: 255
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", default: true
66
- t.string "type", limit: 255
67
- t.string "partial_name", limit: 255
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: "index_rails_workflow_operation_templates_on_process_template_id", using: :btree
74
- add_index "rails_workflow_operation_templates", ["uuid"], name: "index_rails_workflow_operation_templates_on_uuid", using: :btree
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 "title", limit: 255
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", limit: 255
89
+ t.string "assignment_type"
88
90
  t.datetime "assigned_at"
89
- t.string "type", limit: 255
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: "index_rails_workflow_operations_on_process_id", using: :btree
98
- add_index "rails_workflow_operations", ["template_id"], name: "index_rails_workflow_operations_on_template_id", using: :btree
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", limit: 255
101
+ t.string "title"
102
102
  t.text "source"
103
- t.string "manager_class", limit: 255
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.uuid "uuid"
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: "index_rails_workflow_process_templates_on_uuid", using: :btree
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", limit: 255
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", limit: 255
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", limit: 255
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", limit: 255, default: "", null: false
137
- t.string "encrypted_password", limit: 255, default: "", null: false
138
- t.string "reset_password_token", limit: 255
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", default: 0, null: false
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.inet "current_sign_in_ip"
145
- t.inet "last_sign_in_ip"
146
- t.string "role", limit: 255
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
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Madzhuga