phcdevworks_press 1.3.1 → 2.0.0

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
  SHA256:
3
- metadata.gz: c84c96a72893538c9cf7fee5d8fab98fdd2a3c693994c2ee2aa80ac793c70780
4
- data.tar.gz: e98ee465504fca17a4edebc923a4e99d4364372ff6c1e1c3fe7750a9e58d6b9e
3
+ metadata.gz: d36425f9a02cb62e6c5b43ad863bd8ccd4d815ad386034c9c807e507a3564386
4
+ data.tar.gz: 4cbc4385a086648fd128fe6136b577611f40f301a3d0f52b94dffa5fd9606022
5
5
  SHA512:
6
- metadata.gz: 3b7905abcb38a03371f07ddc9fc91db21820089df678a0bd78dbc0b4e3267f9210b0cbe5aff79c500a83ad86f434854a2af69f85c78754789e633ebdfb0acdd3
7
- data.tar.gz: c67ff4b698362bd044b6162d966bf78a6c5fba41d7913c75c67d37c0b99df7d81b326f3584ab8d1a29cc90729097ea40c01b383cbc9c94a497ca34c273ba3530
6
+ metadata.gz: 16cceef2eba91996527cdaa0191d38641ab446de1caab6401b6e0ca83f9bf9e42d3897534a3785a7d2e20d884784eb7d6f8a28bb6557d2c28ceae20463fcf4de
7
+ data.tar.gz: 566264bef78ce7caab9a3b1d470f243fa9e89b19fabd912a0359baebd6d0f267b9d2c85ab60304955951ef0bd8eb9fc21efbf6b730efe814fc75d22912302f5b
@@ -8,7 +8,7 @@ module PhcdevworksPress
8
8
  has_paper_trail :class_name => 'PhcdevworksPress::CategoryVersions'
9
9
 
10
10
  # Relationships
11
- has_and_belongs_to_many :posts, class_name: 'Article::Post', :join_table => 'categories_posts', :dependent => :destroy
11
+ has_and_belongs_to_many :posts, class_name: 'Article::Post', :join_table => 'phcdevworks_press_categories_posts', :dependent => :destroy
12
12
  belongs_to :user, class_name: 'PhcdevworksAccounts::User'
13
13
 
14
14
  # Form Fields Validation
@@ -11,7 +11,7 @@ module PhcdevworksPress
11
11
  has_one_attached :post_image
12
12
 
13
13
  # Relationships
14
- has_and_belongs_to_many :categories, class_name: 'Article::Category', :join_table => 'categories_posts'
14
+ has_and_belongs_to_many :categories, class_name: 'Article::Category', :join_table => 'phcdevworks_press_categories_posts'
15
15
  belongs_to :user, class_name: 'PhcdevworksAccounts::User'
16
16
 
17
17
  # Form Fields Validation
@@ -0,0 +1,8 @@
1
+ class CreatePhcdevworksPressCategoriesPosts < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :phcdevworks_press_categories_posts do |t|
4
+ t.integer :category_id
5
+ t.integer :post_id
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPress
2
- VERSION = '1.3.1'
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_press
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 2.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: 2019-10-15 00:00:00.000000000 Z
11
+ date: 2019-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -240,8 +240,8 @@ dependencies:
240
240
  - - "~>"
241
241
  - !ruby/object:Gem::Version
242
242
  version: '1.4'
243
- description: Ruby on Rails 6 CMS Engine to Manage your Rails Site's Articles, Categories
244
- and Medias.
243
+ description: Ruby on Rails 6 CMS Engine to Manage your Website's Articles, Categories
244
+ and Associated Medias.
245
245
  email:
246
246
  - info@phcdevworks.com
247
247
  executables: []
@@ -294,9 +294,9 @@ files:
294
294
  - config/routes.rb
295
295
  - db/migrate/20170517064030_create_phcdevworks_press_post_versions.rb
296
296
  - db/migrate/20170517064427_create_phcdevworks_press_category_versions.rb
297
- - db/migrate/20190315173237_create_join_table_categories_posts.rb
298
297
  - db/migrate/20190805232522_create_phcdevworks_press_article_posts.rb
299
298
  - db/migrate/20190805232733_create_phcdevworks_press_article_categories.rb
299
+ - db/migrate/20191024232406_create_phcdevworks_press_categories_posts.rb
300
300
  - lib/phcdevworks_press.rb
301
301
  - lib/phcdevworks_press/engine.rb
302
302
  - lib/phcdevworks_press/version.rb
@@ -1,8 +0,0 @@
1
- class CreateJoinTableCategoriesPosts < ActiveRecord::Migration[6.0]
2
- def change
3
- create_join_table :categories, :posts do |t|
4
- # t.index [:category_id, :post_id]
5
- # t.index [:post_id, :category_id]
6
- end
7
- end
8
- end