Skip to content

Commit 97e3e8b

Browse files
Upgrade Dummy app to 7.2
1 parent 5607595 commit 97e3e8b

16 files changed

+91
-177
lines changed

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "rdbg",
9+
"name": "Attach with rdbg",
10+
"request": "attach"
11+
}
12+
]
13+
}

bin/rails

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
# This command will automatically be run when you run "rails" with Rails gems
33
# installed from the root of your application.
44

5+
# Set environment variables for debugging
6+
ENV['RUBY_DEBUG_OPEN'] ||= 'true'
7+
ENV['RUBY_DEBUG_LAZY'] ||= 'true'
8+
ENV['PORT'] ||= '3003'
9+
10+
# Continue with the standard Rails startup
511
ENGINE_ROOT = File.expand_path('..', __dir__)
612
ENGINE_PATH = File.expand_path('../lib/flow_core/engine', __dir__)
713
APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)

test/dummy/config/application.rb

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,15 @@
1515
module Dummy
1616
class Application < Rails::Application
1717
# Initialize configuration defaults for originally generated Rails version.
18-
config.load_defaults 6.0
19-
20-
# Settings in config/environments/* take precedence over those specified here.
21-
# Application configuration can go into files in config/initializers
22-
# -- all .rb files in that directory are automatically loaded after loading
23-
# the framework and any gems in your application.
24-
25-
config.generators do |g|
26-
g.helper false
27-
g.assets false
28-
g.test_framework nil
29-
end
18+
config.load_defaults 7.2
3019

3120
config.i18n.load_path += Dir[Rails.root.join("config/locales/**/*.{rb,yml}")]
3221

22+
# Please, add to the `ignore` list any other `lib` subdirectories that do
23+
# not contain `.rb` files, or that should not be reloaded or eager loaded.
24+
# Common ones are `templates`, `generators`, or `middleware`, for example.
25+
config.autoload_lib(ignore: %w[assets tasks])
26+
3327
overrides = Rails.root.join("app/overrides")
3428
Rails.autoloaders.main.ignore(overrides)
3529
config.to_prepare do

test/dummy/db/migrate/20200205175440_create_form_kit_tables.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def change
4646

4747
create_table :form_kit_form_overrides do |t|
4848
t.references :form, null: false, foreign_key: { to_table: :form_kit_forms }
49+
t.integer :position, null: false, default: 0
4950
t.string :name
5051

5152
t.timestamps

test/dummy/db/schema.rb

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22
# of editing this file, please use the migrations feature of Active Record to
33
# incrementally modify your database, and then regenerate this schema definition.
44
#
5-
# This file is the source Rails uses to define your schema when running `rails
6-
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
5+
# This file is the source Rails uses to define your schema when running `bin/rails
6+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
77
# be faster and is potentially less error prone than running all of your
88
# migrations from scratch. Old migrations may fail to apply correctly if those
99
# migrations use external dependencies or application code.
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 2020_05_23_233225) do
14-
13+
ActiveRecord::Schema[7.2].define(version: 2020_05_23_233225) do
1514
create_table "flow_core_arc_guards", force: :cascade do |t|
1615
t.integer "workflow_id"
1716
t.integer "arc_id"
1817
t.text "configuration"
1918
t.string "type"
20-
t.datetime "created_at", precision: 6, null: false
21-
t.datetime "updated_at", precision: 6, null: false
19+
t.datetime "created_at", null: false
20+
t.datetime "updated_at", null: false
2221
t.integer "pipeline_id"
2322
t.integer "branch_id"
2423
t.index ["arc_id"], name: "index_flow_core_arc_guards_on_arc_id"
@@ -33,8 +32,8 @@
3332
t.integer "place_id", null: false
3433
t.integer "direction", default: 0, null: false
3534
t.boolean "fallback_arc", default: false, null: false
36-
t.datetime "created_at", precision: 6, null: false
37-
t.datetime "updated_at", precision: 6, null: false
35+
t.datetime "created_at", null: false
36+
t.datetime "updated_at", null: false
3837
t.index ["place_id"], name: "index_flow_core_arcs_on_place_id"
3938
t.index ["transition_id"], name: "index_flow_core_arcs_on_transition_id"
4039
t.index ["workflow_id"], name: "index_flow_core_arcs_on_workflow_id"
@@ -45,8 +44,8 @@
4544
t.integer "step_id", null: false
4645
t.string "name"
4746
t.boolean "fallback_branch", default: false, null: false
48-
t.datetime "created_at", precision: 6, null: false
49-
t.datetime "updated_at", precision: 6, null: false
47+
t.datetime "created_at", null: false
48+
t.datetime "updated_at", null: false
5049
t.index ["pipeline_id"], name: "index_flow_core_branches_on_pipeline_id"
5150
t.index ["step_id"], name: "index_flow_core_branches_on_step_id"
5251
end
@@ -55,15 +54,15 @@
5554
t.integer "workflow_id", null: false
5655
t.string "tag"
5756
t.integer "stage", default: 0
58-
t.datetime "activated_at"
59-
t.datetime "finished_at"
60-
t.datetime "canceled_at"
61-
t.datetime "terminated_at"
57+
t.datetime "activated_at", precision: nil
58+
t.datetime "finished_at", precision: nil
59+
t.datetime "canceled_at", precision: nil
60+
t.datetime "terminated_at", precision: nil
6261
t.string "terminate_reason"
6362
t.text "payload"
6463
t.string "type"
65-
t.datetime "created_at", precision: 6, null: false
66-
t.datetime "updated_at", precision: 6, null: false
64+
t.datetime "created_at", null: false
65+
t.datetime "updated_at", null: false
6766
t.string "creator_type"
6867
t.integer "creator_id"
6968
t.integer "form_id"
@@ -76,8 +75,8 @@
7675
create_table "flow_core_pipelines", force: :cascade do |t|
7776
t.string "name", null: false
7877
t.string "type"
79-
t.datetime "created_at", precision: 6, null: false
80-
t.datetime "updated_at", precision: 6, null: false
78+
t.datetime "created_at", null: false
79+
t.datetime "updated_at", null: false
8180
t.integer "form_id"
8281
t.index ["form_id"], name: "index_flow_core_pipelines_on_form_id"
8382
end
@@ -87,8 +86,8 @@
8786
t.string "name"
8887
t.string "tag"
8988
t.string "type"
90-
t.datetime "created_at", precision: 6, null: false
91-
t.datetime "updated_at", precision: 6, null: false
89+
t.datetime "created_at", null: false
90+
t.datetime "updated_at", null: false
9291
t.index ["workflow_id"], name: "index_flow_core_places_on_workflow_id"
9392
end
9493

@@ -101,8 +100,8 @@
101100
t.string "type"
102101
t.boolean "verified", default: false, null: false
103102
t.integer "redirect_to_step_id"
104-
t.datetime "created_at", precision: 6, null: false
105-
t.datetime "updated_at", precision: 6, null: false
103+
t.datetime "created_at", null: false
104+
t.datetime "updated_at", null: false
106105
t.index ["ancestry"], name: "index_flow_core_steps_on_ancestry"
107106
t.index ["branch_id"], name: "index_flow_core_steps_on_branch_id"
108107
t.index ["pipeline_id"], name: "index_flow_core_steps_on_pipeline_id"
@@ -116,21 +115,21 @@
116115
t.string "tag"
117116
t.integer "created_by_token_id"
118117
t.integer "stage", default: 0
119-
t.datetime "enabled_at"
120-
t.datetime "finished_at"
121-
t.datetime "terminated_at"
118+
t.datetime "enabled_at", precision: nil
119+
t.datetime "finished_at", precision: nil
120+
t.datetime "terminated_at", precision: nil
122121
t.string "terminate_reason"
123-
t.datetime "errored_at"
124-
t.datetime "rescued_at"
122+
t.datetime "errored_at", precision: nil
123+
t.datetime "rescued_at", precision: nil
125124
t.string "error_reason"
126-
t.datetime "suspended_at"
127-
t.datetime "resumed_at"
125+
t.datetime "suspended_at", precision: nil
126+
t.datetime "resumed_at", precision: nil
128127
t.boolean "output_token_created", default: false, null: false
129128
t.string "executable_type"
130129
t.integer "executable_id"
131130
t.text "payload"
132-
t.datetime "created_at", precision: 6, null: false
133-
t.datetime "updated_at", precision: 6, null: false
131+
t.datetime "created_at", null: false
132+
t.datetime "updated_at", null: false
134133
t.index ["created_by_token_id"], name: "index_flow_core_tasks_on_created_by_token_id"
135134
t.index ["executable_type", "executable_id"], name: "index_flow_core_tasks_on_executable_type_and_executable_id"
136135
t.index ["instance_id"], name: "index_flow_core_tasks_on_instance_id"
@@ -144,14 +143,14 @@
144143
t.integer "instance_id", null: false
145144
t.integer "place_id", null: false
146145
t.integer "stage", default: 0
147-
t.datetime "locked_at"
148-
t.datetime "consumed_at"
149-
t.datetime "terminated_at"
146+
t.datetime "locked_at", precision: nil
147+
t.datetime "consumed_at", precision: nil
148+
t.datetime "terminated_at", precision: nil
150149
t.integer "created_by_task_id"
151150
t.integer "consumed_by_task_id"
152151
t.boolean "task_created", default: false, null: false
153-
t.datetime "created_at", precision: 6, null: false
154-
t.datetime "updated_at", precision: 6, null: false
152+
t.datetime "created_at", null: false
153+
t.datetime "updated_at", null: false
155154
t.index ["consumed_by_task_id"], name: "index_flow_core_tokens_on_consumed_by_task_id"
156155
t.index ["created_by_task_id"], name: "index_flow_core_tokens_on_created_by_task_id"
157156
t.index ["instance_id"], name: "index_flow_core_tokens_on_instance_id"
@@ -164,8 +163,8 @@
164163
t.integer "transition_id"
165164
t.text "configuration"
166165
t.string "type"
167-
t.datetime "created_at", precision: 6, null: false
168-
t.datetime "updated_at", precision: 6, null: false
166+
t.datetime "created_at", null: false
167+
t.datetime "updated_at", null: false
169168
t.integer "pipeline_id"
170169
t.integer "step_id"
171170
t.integer "attached_form_id"
@@ -184,8 +183,8 @@
184183
t.string "tag"
185184
t.integer "output_token_create_strategy", default: 0, null: false
186185
t.integer "auto_finish_strategy", default: 0, null: false
187-
t.datetime "created_at", precision: 6, null: false
188-
t.datetime "updated_at", precision: 6, null: false
186+
t.datetime "created_at", null: false
187+
t.datetime "updated_at", null: false
189188
t.integer "generated_by_step_id"
190189
t.index ["generated_by_step_id"], name: "index_flow_core_transitions_on_generated_by_step_id"
191190
t.index ["workflow_id"], name: "index_flow_core_transitions_on_workflow_id"
@@ -195,10 +194,10 @@
195194
t.string "name", null: false
196195
t.string "tag"
197196
t.integer "verified", default: 0, null: false
198-
t.datetime "verified_at"
197+
t.datetime "verified_at", precision: nil
199198
t.string "type"
200-
t.datetime "created_at", precision: 6, null: false
201-
t.datetime "updated_at", precision: 6, null: false
199+
t.datetime "created_at", null: false
200+
t.datetime "updated_at", null: false
202201
t.integer "generated_by_pipeline_id"
203202
t.integer "form_id"
204203
t.index ["form_id"], name: "index_flow_core_workflows_on_form_id"
@@ -209,8 +208,8 @@
209208
t.string "assignable_type", null: false
210209
t.integer "assignable_id", null: false
211210
t.integer "trigger_id", null: false
212-
t.datetime "created_at", precision: 6, null: false
213-
t.datetime "updated_at", precision: 6, null: false
211+
t.datetime "created_at", null: false
212+
t.datetime "updated_at", null: false
214213
t.index ["assignable_type", "assignable_id"], name: "index_flow_kit_assignee_candidates_on_assignable"
215214
t.index ["trigger_id"], name: "index_flow_kit_assignee_candidates_on_trigger_id"
216215
end
@@ -223,11 +222,11 @@
223222
t.string "assignable_type"
224223
t.integer "assignable_id"
225224
t.string "status", null: false
226-
t.datetime "assigned_at"
227-
t.datetime "form_filled_at"
228-
t.datetime "finished_at"
229-
t.datetime "created_at", precision: 6, null: false
230-
t.datetime "updated_at", precision: 6, null: false
225+
t.datetime "assigned_at", precision: nil
226+
t.datetime "form_filled_at", precision: nil
227+
t.datetime "finished_at", precision: nil
228+
t.datetime "created_at", null: false
229+
t.datetime "updated_at", null: false
231230
t.index ["assignable_type", "assignable_id"], name: "index_form_kit_human_tasks_assignable"
232231
t.index ["attached_form_id"], name: "index_flow_kit_human_tasks_on_attached_form_id"
233232
t.index ["form_override_id"], name: "index_flow_kit_human_tasks_on_form_override_id"
@@ -240,8 +239,8 @@
240239
t.integer "field_id", null: false
241240
t.text "label", null: false
242241
t.integer "position", default: 0, null: false
243-
t.datetime "created_at", precision: 6, null: false
244-
t.datetime "updated_at", precision: 6, null: false
242+
t.datetime "created_at", null: false
243+
t.datetime "updated_at", null: false
245244
t.index ["field_id"], name: "index_form_kit_choices_on_field_id"
246245
t.index ["form_id"], name: "index_form_kit_choices_on_form_id"
247246
end
@@ -250,8 +249,8 @@
250249
t.integer "form_override_id", null: false
251250
t.integer "field_id", null: false
252251
t.integer "accessibility", null: false
253-
t.datetime "created_at", precision: 6, null: false
254-
t.datetime "updated_at", precision: 6, null: false
252+
t.datetime "created_at", null: false
253+
t.datetime "updated_at", null: false
255254
t.index ["field_id"], name: "index_form_kit_field_overrides_on_field_id"
256255
t.index ["form_override_id", "field_id"], name: "index_form_kit_field_overrides_on_form_field_id", unique: true
257256
t.index ["form_override_id"], name: "index_form_kit_field_overrides_on_form_override_id"
@@ -268,17 +267,18 @@
268267
t.text "default_value"
269268
t.integer "position", default: 0, null: false
270269
t.string "type", null: false
271-
t.datetime "created_at", precision: 6, null: false
272-
t.datetime "updated_at", precision: 6, null: false
270+
t.datetime "created_at", null: false
271+
t.datetime "updated_at", null: false
273272
t.index ["form_id", "key"], name: "index_form_kit_fields_on_form_id_and_key", unique: true
274273
t.index ["form_id"], name: "index_form_kit_fields_on_form_id"
275274
end
276275

277276
create_table "form_kit_form_overrides", force: :cascade do |t|
278277
t.integer "form_id", null: false
279278
t.string "name"
280-
t.datetime "created_at", precision: 6, null: false
281-
t.datetime "updated_at", precision: 6, null: false
279+
t.integer "position", default: 0, null: false
280+
t.datetime "created_at", null: false
281+
t.datetime "updated_at", null: false
282282
t.index ["form_id"], name: "index_form_kit_form_overrides_on_form_id"
283283
end
284284

@@ -288,25 +288,25 @@
288288
t.string "name"
289289
t.string "key", null: false
290290
t.string "type", null: false
291-
t.datetime "created_at", precision: 6, null: false
292-
t.datetime "updated_at", precision: 6, null: false
291+
t.datetime "created_at", null: false
292+
t.datetime "updated_at", null: false
293293
t.index ["attachable_type", "attachable_id"], name: "index_form_kit_forms_on_attachable_type_and_attachable_id"
294294
t.index ["key"], name: "index_form_kit_forms_on_key", unique: true
295295
end
296296

297297
create_table "notifications", force: :cascade do |t|
298298
t.integer "user_id", null: false
299299
t.integer "task_id", null: false
300-
t.datetime "created_at", precision: 6, null: false
301-
t.datetime "updated_at", precision: 6, null: false
300+
t.datetime "created_at", null: false
301+
t.datetime "updated_at", null: false
302302
t.index ["task_id"], name: "index_notifications_on_task_id"
303303
t.index ["user_id"], name: "index_notifications_on_user_id"
304304
end
305305

306306
create_table "users", force: :cascade do |t|
307307
t.string "name"
308-
t.datetime "created_at", precision: 6, null: false
309-
t.datetime "updated_at", precision: 6, null: false
308+
t.datetime "created_at", null: false
309+
t.datetime "updated_at", null: false
310310
end
311311

312312
add_foreign_key "flow_core_arc_guards", "flow_core_arcs", column: "arc_id"

test/dummy/lib/patches/active_support.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)