phcdevworks_tutorials 12.1.0 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +1 -0
  4. data/app/assets/config/phcdevworks_tutorials_manifest.js +2 -3
  5. data/app/controllers/phcdevworks_tutorials/application_controller.rb +13 -13
  6. data/app/controllers/phcdevworks_tutorials/blog/commands_controller.rb +21 -21
  7. data/app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb +21 -21
  8. data/app/controllers/phcdevworks_tutorials/command/items_controller.rb +95 -95
  9. data/app/controllers/phcdevworks_tutorials/command/posts_controller.rb +81 -81
  10. data/app/controllers/phcdevworks_tutorials/tutorial/posts_controller.rb +81 -81
  11. data/app/controllers/phcdevworks_tutorials/tutorial/steps_controller.rb +89 -89
  12. data/app/helpers/phcdevworks_tutorials/application_helper.rb +4 -4
  13. data/app/helpers/phcdevworks_tutorials/blog/commands_helper.rb +4 -4
  14. data/app/helpers/phcdevworks_tutorials/blog/tutorials_helper.rb +4 -4
  15. data/app/helpers/phcdevworks_tutorials/command/items_helper.rb +4 -4
  16. data/app/helpers/phcdevworks_tutorials/command/posts_helper.rb +4 -4
  17. data/app/helpers/phcdevworks_tutorials/tutorial/posts_helper.rb +4 -4
  18. data/app/helpers/phcdevworks_tutorials/tutorial/steps_helper.rb +4 -4
  19. data/app/jobs/phcdevworks_tutorials/application_job.rb +4 -4
  20. data/app/mailers/phcdevworks_tutorials/application_mailer.rb +6 -6
  21. data/app/models/phcdevworks_tutorials/application_record.rb +5 -5
  22. data/app/models/phcdevworks_tutorials/command/item.rb +17 -17
  23. data/app/models/phcdevworks_tutorials/command/post.rb +34 -34
  24. data/app/models/phcdevworks_tutorials/command.rb +7 -7
  25. data/app/models/phcdevworks_tutorials/command_item_versions.rb +5 -5
  26. data/app/models/phcdevworks_tutorials/command_post_versions.rb +5 -5
  27. data/app/models/phcdevworks_tutorials/tutorial/post.rb +34 -34
  28. data/app/models/phcdevworks_tutorials/tutorial/step.rb +17 -17
  29. data/app/models/phcdevworks_tutorials/tutorial.rb +7 -7
  30. data/app/models/phcdevworks_tutorials/tutorial_post_versions.rb +5 -5
  31. data/app/models/phcdevworks_tutorials/tutorial_step_versions.rb +5 -5
  32. data/app/views/layouts/phcdevworks_tutorials/application.html.erb +34 -92
  33. data/app/views/layouts/phcdevworks_tutorials/components/backend/footer/_footer.html.erb +10 -9
  34. data/app/views/layouts/phcdevworks_tutorials/components/backend/navigation/_top_menu.html.erb +26 -25
  35. data/app/views/layouts/phcdevworks_tutorials/components/backend/sidebars/_side_menu.html.erb +491 -287
  36. data/app/views/phcdevworks_tutorials/command/items/_form.html.erb +42 -42
  37. data/app/views/phcdevworks_tutorials/command/items/edit.html.erb +39 -47
  38. data/app/views/phcdevworks_tutorials/command/items/index.html.erb +74 -82
  39. data/app/views/phcdevworks_tutorials/command/items/new.html.erb +39 -47
  40. data/app/views/phcdevworks_tutorials/command/items/show.html.erb +19 -19
  41. data/app/views/phcdevworks_tutorials/command/posts/_form.html.erb +56 -56
  42. data/app/views/phcdevworks_tutorials/command/posts/edit.html.erb +39 -47
  43. data/app/views/phcdevworks_tutorials/command/posts/index.html.erb +73 -81
  44. data/app/views/phcdevworks_tutorials/command/posts/new.html.erb +41 -49
  45. data/app/views/phcdevworks_tutorials/command/posts/show.html.erb +66 -74
  46. data/app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb +56 -56
  47. data/app/views/phcdevworks_tutorials/tutorial/posts/edit.html.erb +39 -47
  48. data/app/views/phcdevworks_tutorials/tutorial/posts/index.html.erb +76 -85
  49. data/app/views/phcdevworks_tutorials/tutorial/posts/new.html.erb +39 -47
  50. data/app/views/phcdevworks_tutorials/tutorial/posts/show.html.erb +68 -76
  51. data/app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb +48 -48
  52. data/app/views/phcdevworks_tutorials/tutorial/steps/edit.html.erb +39 -47
  53. data/app/views/phcdevworks_tutorials/tutorial/steps/index.html.erb +74 -82
  54. data/app/views/phcdevworks_tutorials/tutorial/steps/new.html.erb +39 -47
  55. data/config/routes.rb +31 -36
  56. data/config/spring.rb +1 -1
  57. data/db/migrate/20191017235259_create_phcdevworks_tutorials_tutorial_posts.rb +19 -19
  58. data/db/migrate/20191017235421_create_phcdevworks_tutorials_tutorial_steps.rb +22 -22
  59. data/db/migrate/20191024232406_create_phcdevworks_tutorials_tutorial_categories_posts.rb +10 -10
  60. data/db/migrate/20191102093129_create_phcdevworks_tutorials_tutorial_post_versions.rb +17 -17
  61. data/db/migrate/20191102093146_create_phcdevworks_tutorials_tutorial_step_versions.rb +18 -18
  62. data/db/migrate/20200320110115_create_phcdevworks_tutorials_command_posts.rb +19 -19
  63. data/db/migrate/20200320110553_create_phcdevworks_tutorials_command_items.rb +19 -19
  64. data/db/migrate/20200321122525_create_phcdevworks_tutorials_command_item_versions.rb +18 -18
  65. data/db/migrate/20200321122606_create_phcdevworks_tutorials_command_post_versions.rb +18 -18
  66. data/db/migrate/20200328012248_create_phcdevworks_tutorials_command_categories_posts.rb +10 -10
  67. data/lib/phcdevworks_tutorials/engine.rb +45 -46
  68. data/lib/phcdevworks_tutorials/version.rb +3 -3
  69. metadata +36 -87
  70. data/app/assets/stylesheets/phcdevworks_tutorials/application.scss +0 -0
  71. data/app/assets/stylesheets/phcdevworks_tutorials/blog/commands.scss +0 -3
  72. data/app/assets/stylesheets/phcdevworks_tutorials/blog/tutorials.scss +0 -3
  73. data/app/assets/stylesheets/phcdevworks_tutorials/command/items.scss +0 -3
  74. data/app/assets/stylesheets/phcdevworks_tutorials/command/posts.scss +0 -3
  75. data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/posts.css +0 -4
  76. data/app/assets/stylesheets/phcdevworks_tutorials/tutorial/steps.css +0 -4
  77. data/app/views/layouts/phcdevworks_tutorials/frontend.html.erb +0 -0
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Tutorial Post Manager" %>
3
- <% phc_title_tagline "Update Tutorial Step" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "Tutorial Step Index", phcdevworks_tutorials.tutorial_post_steps_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Edit Form -->
36
- <%= render "form", { form_url: tutorial_post_step_path } %>
37
- <!-- Edit Form -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Tutorial Post Manager" %>
3
+ <% phc_title_tagline "Update Tutorial Step" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Tutorial Step Index", phcdevworks_tutorials.tutorial_post_steps_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- Edit Form -->
32
+ <%= render "form", { form_url: tutorial_post_step_path } %>
33
+ <!-- -PHCDEV- Edit Form -->
34
+
35
+ </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
38
+ </div>
39
+ <!-- -PHCDEV- Panel -->
@@ -1,82 +1,74 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Tutorial Post Manager" %>
3
- <% phc_title_tagline "Tutorial Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Tutorial Step Number</th>
42
- <th>Tutorial Step Title</th>
43
- <th></th>
44
- </tr>
45
- </thead>
46
-
47
- <tbody>
48
- <% @tutorial_steps.each do |tutorial_step| %>
49
- <tr>
50
- <td><%= tutorial_step.tutorial_step_number %></td>
51
- <td><%= tutorial_step.tutorial_step_title %></td>
52
- <td><%= truncate(tutorial_step.tutorial_step_text, :length => 80, :escape => false) %></td>
53
- <td>
54
- <div class="btn-group d-flex" role="group">
55
- <%= link_to "Update Step", edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %>
56
- <%= link_to "Remove Step", tutorial_post_step_path(tutorial_step.post, tutorial_step), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
57
- </div>
58
- </td>
59
- </tr>
60
- <% end %>
61
- </tbody>
62
-
63
- </table>
64
- </div>
65
- <!-- Index - Table -->
66
-
67
- <!-- New Button -->
68
- <%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %>
69
- <i class="fad fa-plus-circle"></i>
70
- Add a New Step for Tutorial
71
- <% end %>
72
- <!-- New Button -->
73
-
74
- </div>
75
- <!-- Panel - Body -->
76
-
77
- </div>
78
- <!-- Panel -->
79
-
80
- </div>
81
- </div>
82
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Tutorial Post Manager" %>
3
+ <% phc_title_tagline "Tutorial Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
+
35
+ <thead>
36
+ <tr>
37
+ <th>Tutorial Step Number</th>
38
+ <th>Tutorial Step Title</th>
39
+ <th></th>
40
+ </tr>
41
+ </thead>
42
+
43
+ <tbody>
44
+ <% @tutorial_steps.each do |tutorial_step| %>
45
+ <tr>
46
+ <td><%= tutorial_step.tutorial_step_number %></td>
47
+ <td><%= tutorial_step.tutorial_step_title %></td>
48
+ <td><%= truncate(tutorial_step.tutorial_step_text, :length => 80, :escape => false) %></td>
49
+ <td>
50
+ <div class="btn-group d-flex" role="group">
51
+ <%= link_to "Update Step", edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %>
52
+ <%= link_to "Remove Step", tutorial_post_step_path(tutorial_step.post, tutorial_step), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
58
+
59
+ </table>
60
+ </div>
61
+ <!-- -PHCDEV- Index - Table -->
62
+
63
+ <!-- -PHCDEV- New Button -->
64
+ <%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %>
65
+ <i class="fad fa-plus-circle"></i>
66
+ Add a New Step for Tutorial
67
+ <% end %>
68
+ <!-- -PHCDEV- New Button -->
69
+
70
+ </div>
71
+ <!-- -PHCDEV- Panel - Body -->
72
+
73
+ </div>
74
+ <!-- -PHCDEV- Panel -->
@@ -1,47 +1,39 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Tutorial Post Manager" %>
3
- <% phc_title_tagline "Add a New Step" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <% phc_breadcrumb_two link_to "Tutorial Step Index", phcdevworks_tutorials.tutorial_post_steps_path %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- New Form -->
36
- <%= render "form", { form_url: tutorial_post_steps_path } %>
37
- <!-- New Form -->
38
-
39
- </div>
40
- <!-- Panel - Body -->
41
-
42
- </div>
43
- <!-- Panel -->
44
-
45
- </div>
46
- </div>
47
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title Variables -->
2
+ <% phc_title "Tutorial Post Manager" %>
3
+ <% phc_title_tagline "Add a New Step" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <% phc_breadcrumb_two link_to "Tutorial Step Index", phcdevworks_tutorials.tutorial_post_steps_path %>
6
+ <!-- -PHCDEV- Title Variables -->
7
+
8
+ <!-- -PHCDEV- Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- -PHCDEV- Bradcrumbs -->
14
+
15
+ <!-- -PHCDEV- Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDEV- Header -->
18
+
19
+ <!-- -PHCDEV- Panel -->
20
+ <div class="panel panel-inverse">
21
+
22
+ <!-- -PHCDEV- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDEV- Panel - Heading -->
27
+
28
+ <!-- -PHCDEV- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDEV- New Form -->
32
+ <%= render "form", { form_url: tutorial_post_steps_path } %>
33
+ <!-- -PHCDEV- New Form -->
34
+
35
+ </div>
36
+ <!-- -PHCDEV- Panel - Body -->
37
+
38
+ </div>
39
+ <!-- -PHCDEV- Panel -->
data/config/routes.rb CHANGED
@@ -1,36 +1,31 @@
1
- PhcdevworksTutorials::Engine.routes.draw do
2
-
3
- # Tutorial Routes
4
- namespace :tutorial do
5
- resources :posts, class_name: "Tutorial::Post" do
6
- resources :steps, class_name: "Tutorial::Step"
7
- end
8
- end
9
-
10
- # Command Routes
11
- namespace :command do
12
- resources :posts, class_name: "Command::Post" do
13
- resources :items, class_name: "Command::Item"
14
- end
15
- end
16
-
17
- # Frontend Routes
18
- namespace :blog do
19
- resources :tutorials, only: [:index, :show]
20
- resources :commands, only: [:index, :show]
21
- end
22
-
23
- # API Routes
24
- namespace :api, :path => "", :constraints => {:subdomain => "tutorial_api"} do
25
- namespace :v1 do
26
- resources :posts, defaults: {format: "json"}
27
- resources :categories, defaults: {format: "json"}
28
- end
29
- end
30
-
31
- # Mount Routes
32
- mount PhcdevworksAccounts::Engine, :at => '/'
33
- mount PhcdevworksAccountsStripe::Engine, :at => '/'
34
- mount PhcdevworksCoreModules::Engine, :at => '/'
35
-
36
- end
1
+ PhcdevworksTutorials::Engine.routes.draw do
2
+
3
+ # Tutorial Routes
4
+ namespace :tutorial do
5
+ resources :posts, class_name: "Tutorial::Post" do
6
+ resources :steps, class_name: "Tutorial::Step"
7
+ end
8
+ end
9
+
10
+ # Command Routes
11
+ namespace :command do
12
+ resources :posts, class_name: "Command::Post" do
13
+ resources :items, class_name: "Command::Item"
14
+ end
15
+ end
16
+
17
+ # Frontend Routes
18
+ namespace :blog do
19
+ resources :tutorials, only: [:index, :show]
20
+ resources :commands, only: [:index, :show]
21
+ end
22
+
23
+ # API Routes
24
+ namespace :api, :path => "", :constraints => {:subdomain => "tutorial_api"} do
25
+ namespace :v1 do
26
+ resources :posts, defaults: {format: "json"}
27
+ resources :categories, defaults: {format: "json"}
28
+ end
29
+ end
30
+
31
+ end
data/config/spring.rb CHANGED
@@ -1,2 +1,2 @@
1
- Spring.application_root = './spec/test_app'
1
+ Spring.application_root = './spec/test_app'
2
2
 
@@ -1,19 +1,19 @@
1
- class CreatePhcdevworksTutorialsTutorialPosts < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_tutorials_tutorial_posts do |t|
4
-
5
- t.string :tutorial_post_title
6
- t.text :tutorial_post_text
7
- t.string :tutorial_post_status
8
-
9
- t.string :optimization_id
10
-
11
- t.string :slug
12
- t.string :user_id
13
- t.string :org_id
14
-
15
- t.timestamps
16
-
17
- end
18
- end
19
- end
1
+ class CreatePhcdevworksTutorialsTutorialPosts < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_tutorials_tutorial_posts do |t|
4
+
5
+ t.string :tutorial_post_title
6
+ t.text :tutorial_post_text
7
+ t.string :tutorial_post_status
8
+
9
+ t.string :optimization_id
10
+
11
+ t.string :slug
12
+ t.string :user_id
13
+ t.string :org_id
14
+
15
+ t.timestamps
16
+
17
+ end
18
+ end
19
+ end
@@ -1,22 +1,22 @@
1
- class CreatePhcdevworksTutorialsTutorialSteps < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_tutorials_tutorial_steps do |t|
4
-
5
- t.string :tutorial_step_number
6
- t.string :tutorial_step_title
7
- t.text :tutorial_step_text
8
- t.text :tutorial_step_copy_instruction
9
-
10
- t.string :optimization_id
11
-
12
- t.string :slug
13
- t.string :user_id
14
- t.string :org_id
15
-
16
- t.references :post
17
-
18
- t.timestamps
19
-
20
- end
21
- end
22
- end
1
+ class CreatePhcdevworksTutorialsTutorialSteps < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_tutorials_tutorial_steps do |t|
4
+
5
+ t.string :tutorial_step_number
6
+ t.string :tutorial_step_title
7
+ t.text :tutorial_step_text
8
+ t.text :tutorial_step_copy_instruction
9
+
10
+ t.string :optimization_id
11
+
12
+ t.string :slug
13
+ t.string :user_id
14
+ t.string :org_id
15
+
16
+ t.references :post
17
+
18
+ t.timestamps
19
+
20
+ end
21
+ end
22
+ end
@@ -1,10 +1,10 @@
1
- class CreatePhcdevworksTutorialsTutorialCategoriesPosts < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_tutorials_tutorial_categories_posts do |t|
4
-
5
- t.integer :category_id
6
- t.integer :post_id
7
-
8
- end
9
- end
10
- end
1
+ class CreatePhcdevworksTutorialsTutorialCategoriesPosts < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_tutorials_tutorial_categories_posts do |t|
4
+
5
+ t.integer :category_id
6
+ t.integer :post_id
7
+
8
+ end
9
+ end
10
+ end
@@ -1,18 +1,18 @@
1
- class CreatePhcdevworksTutorialsTutorialPostVersions < ActiveRecord::Migration[6.0]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
- create_table :phcdevworks_tutorials_tutorial_post_versions do |t|
5
-
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
-
13
- end
14
-
15
- add_index :phcdevworks_tutorials_tutorial_post_versions, %i(item_type item_id), :name => 'tutorial_post_versions'
16
-
17
- end
1
+ class CreatePhcdevworksTutorialsTutorialPostVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+ create_table :phcdevworks_tutorials_tutorial_post_versions do |t|
5
+
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+
13
+ end
14
+
15
+ add_index :phcdevworks_tutorials_tutorial_post_versions, %i(item_type item_id), :name => 'tutorial_post_versions'
16
+
17
+ end
18
18
  end
@@ -1,18 +1,18 @@
1
- class CreatePhcdevworksTutorialsTutorialStepVersions < ActiveRecord::Migration[6.0]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
- create_table :phcdevworks_tutorials_tutorial_step_versions do |t|
5
-
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
-
13
- end
14
-
15
- add_index :phcdevworks_tutorials_tutorial_step_versions, %i(item_type item_id), :name => 'tutorial_step_versions'
16
-
17
- end
18
- end
1
+ class CreatePhcdevworksTutorialsTutorialStepVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+ create_table :phcdevworks_tutorials_tutorial_step_versions do |t|
5
+
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+
13
+ end
14
+
15
+ add_index :phcdevworks_tutorials_tutorial_step_versions, %i(item_type item_id), :name => 'tutorial_step_versions'
16
+
17
+ end
18
+ end
@@ -1,19 +1,19 @@
1
- class CreatePhcdevworksTutorialsCommandPosts < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_tutorials_command_posts do |t|
4
-
5
- t.string :command_post_title
6
- t.text :command_post_text
7
- t.string :command_post_status
8
-
9
- t.string :optimization_id
10
-
11
- t.string :slug
12
- t.string :user_id
13
- t.string :org_id
14
-
15
- t.timestamps
16
-
17
- end
18
- end
19
- end
1
+ class CreatePhcdevworksTutorialsCommandPosts < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_tutorials_command_posts do |t|
4
+
5
+ t.string :command_post_title
6
+ t.text :command_post_text
7
+ t.string :command_post_status
8
+
9
+ t.string :optimization_id
10
+
11
+ t.string :slug
12
+ t.string :user_id
13
+ t.string :org_id
14
+
15
+ t.timestamps
16
+
17
+ end
18
+ end
19
+ end