phcdevworks_core_modules 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/phcdevworks_core_modules/marketing/optimization.rb +1 -1
- data/app/models/phcdevworks_core_modules/marketing_optimization_versions.rb +5 -0
- data/app/models/phcdevworks_core_modules/post/category.rb +5 -6
- data/app/models/phcdevworks_core_modules/post_category_versions.rb +5 -0
- data/db/migrate/{20200705225433_create_phcdevworks_core_modules_optimization_versions.rb → 20170517064427_create_phcdevworks_core_modules_post_category_versions.rb} +17 -17
- data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb +17 -0
- data/lib/phcdevworks_core_modules/version.rb +1 -1
- metadata +6 -6
- data/app/models/phcdevworks_core_modules/core_category_versions.rb +0 -5
- data/app/models/phcdevworks_core_modules/core_optimization_versions.rb +0 -5
- data/db/migrate/20170517064427_create_phcdevworks_core_modules_category_versions.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a7c0e3b836856dece9403e91a82c744952588583ca19648180d063c9d49392
|
4
|
+
data.tar.gz: 66941932957bc90eca62ca1f951a96692eee354e9c85e4fc05e5dc160f509a13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73f70fb86f8b1095b4d69ae813c935d4aec15a34561214624cce14e790046d406fa2aca5691803162617cd07eca9da16a8375fdb45fda4dd575db5fc62f5dd9f
|
7
|
+
data.tar.gz: a68547e3c3d75fea5298e849c026165be78d98f2d4978fd8cfcfbfc51a1d1ce6f03816c60b9f5018adbc2c032f81b5e39ca02c76b1c30ea011380dc025b7e2cd
|
@@ -9,7 +9,7 @@ module PhcdevworksCoreModules
|
|
9
9
|
has_one_attached :seo_open_graph_image
|
10
10
|
|
11
11
|
# Paper Trail Initialize
|
12
|
-
has_paper_trail :class_name => "PhcdevworksCoreModules::
|
12
|
+
has_paper_trail :class_name => "PhcdevworksCoreModules::MarketingOptimizationVersions"
|
13
13
|
|
14
14
|
# Relationships for Local
|
15
15
|
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
@@ -9,7 +9,7 @@ module PhcdevworksCoreModules
|
|
9
9
|
has_one_attached :seo_open_graph_image
|
10
10
|
|
11
11
|
# Paper Trail Initialize
|
12
|
-
has_paper_trail :class_name => "PhcdevworksCoreModules::
|
12
|
+
has_paper_trail :class_name => "PhcdevworksCoreModules::PostCategoryVersions"
|
13
13
|
|
14
14
|
# Relationships for Local
|
15
15
|
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
@@ -31,14 +31,13 @@ module PhcdevworksCoreModules
|
|
31
31
|
validates :category_name,
|
32
32
|
presence: true,
|
33
33
|
uniqueness: true
|
34
|
-
|
34
|
+
|
35
35
|
# Clean URL Define
|
36
36
|
friendly_id :phcdev_core_category_nice_urls, use: [:slugged, :finders]
|
37
|
-
|
37
|
+
|
38
38
|
def phcdev_core_category_nice_urls
|
39
|
-
|
39
|
+
[:category_name]
|
40
40
|
end
|
41
|
-
|
42
|
-
|
41
|
+
|
43
42
|
end
|
44
43
|
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
class
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :
|
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
|
-
end
|
13
|
-
|
14
|
-
add_index :
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
1
|
+
class CreatePhcdevworksCoreModulesPostCategoryVersions < ActiveRecord::Migration[6.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcdevworks_core_modules_post_category_versions do |t|
|
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
|
+
end
|
13
|
+
|
14
|
+
add_index :phcdevworks_core_modules_post_category_versions, %i(item_type item_id), :name => 'post_category_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
data/db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcdevworksCoreModulesMarketingOptimizationVersions < ActiveRecord::Migration[6.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcdevworks_core_modules_marketing_optimization_versions do |t|
|
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
|
+
end
|
13
|
+
|
14
|
+
add_index :phcdevworks_core_modules_marketing_optimization_versions, %i(item_type item_id), :name => 'marketing_optimize_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_core_modules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -281,13 +281,13 @@ files:
|
|
281
281
|
- app/jobs/phcdevworks_core_modules/application_job.rb
|
282
282
|
- app/mailers/phcdevworks_core_modules/application_mailer.rb
|
283
283
|
- app/models/phcdevworks_core_modules/application_record.rb
|
284
|
-
- app/models/phcdevworks_core_modules/core_category_versions.rb
|
285
|
-
- app/models/phcdevworks_core_modules/core_optimization_versions.rb
|
286
284
|
- app/models/phcdevworks_core_modules/marketing.rb
|
287
285
|
- app/models/phcdevworks_core_modules/marketing/optimization.rb
|
286
|
+
- app/models/phcdevworks_core_modules/marketing_optimization_versions.rb
|
288
287
|
- app/models/phcdevworks_core_modules/modules.rb
|
289
288
|
- app/models/phcdevworks_core_modules/post.rb
|
290
289
|
- app/models/phcdevworks_core_modules/post/category.rb
|
290
|
+
- app/models/phcdevworks_core_modules/post_category_versions.rb
|
291
291
|
- app/views/layouts/phcdevworks_core_modules/application.html.erb
|
292
292
|
- app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb
|
293
293
|
- app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb
|
@@ -303,9 +303,9 @@ files:
|
|
303
303
|
- app/views/phcdevworks_core_modules/post/categories/new.html.erb
|
304
304
|
- app/views/phcdevworks_core_modules/post/categories/show.html.erb
|
305
305
|
- config/routes.rb
|
306
|
-
- db/migrate/
|
306
|
+
- db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb
|
307
307
|
- db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb
|
308
|
-
- db/migrate/
|
308
|
+
- db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
|
309
309
|
- db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb
|
310
310
|
- lib/phcdevworks_core_modules.rb
|
311
311
|
- lib/phcdevworks_core_modules/engine.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class CreatePhcdevworksCoreModulesCategoryVersions < ActiveRecord::Migration[6.0]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcdevworks_core_modules_category_versions do |t|
|
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
|
-
end
|
13
|
-
|
14
|
-
add_index :phcdevworks_core_modules_category_versions, %i(item_type item_id), :name => 'core_category_versions'
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|