standardapi 6.0.0.25 → 6.0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/standard_api/version.rb +1 -1
- data/test/standard_api/test_app.rb +1 -1
- data/test/standard_api/test_app/log/test.log +9164 -0
- data/test/standard_api/test_app/models.rb +0 -11
- metadata +2 -2
@@ -18,12 +18,10 @@ class Pdf < Document
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class Property < ActiveRecord::Base
|
21
|
-
has_and_belongs_to_many :landlords
|
22
21
|
has_and_belongs_to_many :photos
|
23
22
|
has_many :accounts
|
24
23
|
has_one :landlord, class_name: 'Account'
|
25
24
|
|
26
|
-
|
27
25
|
validates :name, presence: true
|
28
26
|
accepts_nested_attributes_for :photos
|
29
27
|
|
@@ -32,11 +30,6 @@ class Property < ActiveRecord::Base
|
|
32
30
|
end
|
33
31
|
end
|
34
32
|
|
35
|
-
# TODO: Remove, not sure why this is here and not just using account.
|
36
|
-
class Landlord < ActiveRecord::Base
|
37
|
-
has_and_belongs_to_many :properties
|
38
|
-
end
|
39
|
-
|
40
33
|
class Reference < ActiveRecord::Base
|
41
34
|
belongs_to :subject, polymorphic: true
|
42
35
|
end
|
@@ -53,10 +46,6 @@ class CreateModelTables < ActiveRecord::Migration[5.2]
|
|
53
46
|
t.integer 'photos_count', null: false, default: 0
|
54
47
|
end
|
55
48
|
|
56
|
-
create_table "landlords", force: :cascade do |t|
|
57
|
-
t.string "name"
|
58
|
-
end
|
59
|
-
|
60
49
|
create_table "photos", force: :cascade do |t|
|
61
50
|
t.integer "account_id"
|
62
51
|
t.integer "property_id"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standardapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0.
|
4
|
+
version: 6.0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Bracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|