phcdevworks_real_estate 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: 04f53df5fda90f8c79a7e9ef1d02e7cca6e56e0369b39359365c8113813f1c65
4
- data.tar.gz: e31775303daa9a7f2a241d485ee3836caaac12bab69caac51f95814a2e993b47
3
+ metadata.gz: 06c580a40b781dac5dc4a59d658cbc97f7b3e5a4780541c6bb1357d475a014a2
4
+ data.tar.gz: 79a057a8b0f7b887c6be155d9f33952fa8ee31ecc7adbe9697d1dfeba48cc2d7
5
5
  SHA512:
6
- metadata.gz: a7cf70a5d6cef52e7a2f5a6314a0105010cbdec00057b951ed9c94a569eae1e5572c7114c210891a4995a34430df0a1f1257f3da3361eef6d654618eb8cd6a8d
7
- data.tar.gz: b00435a5f4c2a27f161dd4f6f441bcd5b59fb3ad249c05e07c82bd8799b5cf6695b0d3350a1ee8b51957a5402870cf43421695a9dd076562262b70f1c1b8bd16
6
+ metadata.gz: fabf470c3812463290834aa03cc85488fc6b34a6bb501bdba9618f315747ef5688e04a9d15b34206860dfa64bd0e30cadce652a87ad7955100d198732a811acd
7
+ data.tar.gz: 2e27dcd7635ee1d4141496fa64991a18728535204703149d55a2982a12b958810eea2af7c8a9625c6af398c547963620765f2b31347043971be5d76495983c61
@@ -5,7 +5,7 @@ module PhcdevworksRealEstate
5
5
  extend FriendlyId
6
6
 
7
7
  # Relationships
8
- has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'features_listings'
8
+ has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'phcdevworks_real_estate_features_listings'
9
9
 
10
10
  # Validation for Form Fields
11
11
  validates :feature_name,
@@ -9,7 +9,7 @@ module PhcdevworksRealEstate
9
9
  has_many_attached :gallery_upload
10
10
 
11
11
  # Relationships
12
- has_and_belongs_to_many :features, class_name: 'Phcreallistingspro::Property::Feature', :join_table => 'features_listings'
12
+ has_and_belongs_to_many :features, class_name: 'Phcreallistingspro::Property::Feature', :join_table => 'phcdevworks_real_estate_features_listings'
13
13
 
14
14
  # Validation for Form Fields
15
15
  validates :listing_title,
@@ -0,0 +1,8 @@
1
+ class CreatePhcdevworksRealEstateFeaturesListings < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :phcdevworks_real_estate_features_listings do |t|
4
+ t.integer :feature_id
5
+ t.integer :listing_id
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksRealEstate
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_real_estate
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
@@ -284,9 +284,9 @@ files:
284
284
  - app/views/phcdevworks_real_estate/property/listings/new.html.erb
285
285
  - app/views/phcdevworks_real_estate/property/listings/show.html.erb
286
286
  - config/routes.rb
287
- - db/migrate/20180918034641_create_join_table_features_listings.rb
288
287
  - db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb
289
288
  - db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb
289
+ - db/migrate/20191024232111_create_phcdevworks_real_estate_features_listings.rb
290
290
  - lib/phcdevworks_real_estate.rb
291
291
  - lib/phcdevworks_real_estate/engine.rb
292
292
  - lib/phcdevworks_real_estate/version.rb
@@ -1,8 +0,0 @@
1
- class CreateJoinTableFeaturesListings < ActiveRecord::Migration[6.0]
2
- def change
3
- create_join_table :features, :listings do |t|
4
- # t.index [:feature_id, :listing_id]
5
- # t.index [:listing_id, :feature_id]
6
- end
7
- end
8
- end