discourse_subscription_client 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea189a1e70964148ffbcad4fb0ee45b8274c77d84b0dedf06f785108666090eb
|
4
|
+
data.tar.gz: d275e4c8551df79ebace036fbc1550715f1b7220bc4c9c6cb1cb552b7b9cfe25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5dd6fe8540cc4644e8e35d2f22b61f91c9f3ae5286c4b7a33e99f2a4c5be8facd9dd260f88c2da92b0d869e090d7cb440a990f87db1330634dd0a4327b8364
|
7
|
+
data.tar.gz: 0f8e839f5c58e48c10850917154f7febcec84a3f004f098c672776521889fa29fb8e05d6366664ba9a3326d0816862bb71f70553258c050da016463e9bd3f59d
|
@@ -4,15 +4,21 @@ class SubscriptionClientResource < ActiveRecord::Base
|
|
4
4
|
belongs_to :supplier, class_name: "SubscriptionClientSupplier"
|
5
5
|
has_many :notices, class_name: "SubscriptionClientNotice", as: :notice_subject, dependent: :destroy
|
6
6
|
has_many :subscriptions, foreign_key: "resource_id", class_name: "SubscriptionClientSubscription", dependent: :destroy
|
7
|
+
|
8
|
+
def source_url(bucket)
|
9
|
+
"s3://#{access_key_id}:#{secret_access_key}@#{bucket}"
|
10
|
+
end
|
7
11
|
end
|
8
12
|
|
9
13
|
# == Schema Information
|
10
14
|
#
|
11
15
|
# Table name: subscription_client_resources
|
12
16
|
#
|
13
|
-
# id
|
14
|
-
# supplier_id
|
15
|
-
# name
|
16
|
-
# created_at
|
17
|
-
# updated_at
|
17
|
+
# id :bigint not null, primary key
|
18
|
+
# supplier_id :bigint
|
19
|
+
# name :string not null
|
20
|
+
# created_at :datetime not null
|
21
|
+
# updated_at :datetime not null
|
22
|
+
# access_key_id :string
|
23
|
+
# secret_access_key :string
|
18
24
|
#
|