metasploit_data_models 3.0.9 → 3.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7cd8f88a9a91d4f1f88a98b94e67b6fa9cd60600
4
- data.tar.gz: 3fe49000616262eb311d3c6ae3ffb18b3ec5d666
3
+ metadata.gz: d4c73d42c6399efc5b8975773428803813f1145d
4
+ data.tar.gz: 81aac6c3f8cdba497cfd8ce8c57fc7dfb74057eb
5
5
  SHA512:
6
- metadata.gz: 7e20f653ab6fb4117f3332ec0159e254f6c78613707f2ac31c13589016ab2148cae7c440093d467d201e04f65d13ecad51bce0315175edf47087e3153f3aedfe
7
- data.tar.gz: c1c41872d791a4d5dd3ba0179099bf67ee3f723966691ff1312f08121eb135810d906086e4b2423fd3271c16378a552b125b6756b013b3fea1aaa075f626a99a
6
+ metadata.gz: ae8c3c35bc46654167e9f9238b733c2cd60e2c8df6763ebf677c3b4a3d5b361b908b8ded83f2a9a895d9aec3c7be22635acb0014096ab7ce26b9701048e7a9bc
7
+ data.tar.gz: 5d18cc2bc2f45838e7ac41b7ecb7f9af2d91d86cc19f1dd61a315af6c7b1d37c482b06d6233565437f72fe50b38ba042723d6a377175732468b41e08cfa51b9b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -8,14 +8,6 @@ class Mdm::Payload < ActiveRecord::Base
8
8
  # Associations
9
9
  #
10
10
 
11
- # @!attribute [rw] workspace
12
- # {Mdm::Workspace} in which this payload was created.
13
- #
14
- # @return [Mdm::Workspace]
15
- belongs_to :workspace,
16
- class_name: 'Mdm::Workspace',
17
- inverse_of: :payloads
18
-
19
11
 
20
12
  #
21
13
  # Attributes
@@ -65,11 +57,6 @@ class Mdm::Payload < ActiveRecord::Base
65
57
  #
66
58
  # @return [String]
67
59
 
68
- # @!attribute [rw] workspace_id
69
- # The ID of the workspace this payload belongs to.
70
- #
71
- # @return [Integer]
72
-
73
60
  # @!attribute [rw] raw_payload
74
61
  # A URL pointing to where the binary payload can be downloaded from.
75
62
  #
@@ -95,8 +82,6 @@ class Mdm::Payload < ActiveRecord::Base
95
82
  # Validations
96
83
  #
97
84
 
98
- validates :workspace, :presence => true
99
-
100
85
 
101
86
  #
102
87
  # Search Attributes
@@ -81,9 +81,6 @@ class Mdm::Workspace < ActiveRecord::Base
81
81
  # Sessions opened on {#hosts} in this workspace.
82
82
  has_many :sessions, :through => :hosts, :class_name => 'Mdm::Session'
83
83
 
84
- # Payloads for this workspace.
85
- has_many :payloads, :class_name => 'Mdm::Payload'
86
-
87
84
  #
88
85
  # Attributes
89
86
  #
@@ -0,0 +1,5 @@
1
+ class RemovePayloadWorkspaces < ActiveRecord::Migration
2
+ def change
3
+ remove_column :payloads, :workspace_id, :references
4
+ end
5
+ end
@@ -1,6 +1,6 @@
1
1
  module MetasploitDataModels
2
2
  # VERSION is managed by GemRelease
3
- VERSION = '3.0.9'
3
+ VERSION = '3.0.10'
4
4
 
5
5
  # @return [String]
6
6
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Huckins
@@ -557,6 +557,7 @@ files:
557
557
  - db/migrate/20161227212223_add_os_family_to_hosts.rb
558
558
  - db/migrate/20180904120211_create_payloads.rb
559
559
  - db/migrate/20190308134512_create_async_callbacks.rb
560
+ - db/migrate/20190507120211_remove_payload_workspaces.rb
560
561
  - lib/mdm.rb
561
562
  - lib/mdm/host/operating_system_normalization.rb
562
563
  - lib/mdm/module.rb
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- {��V�M�%���ư>�V �Y�"1�N
2
- ���d
1
+ 9��Vd@I���qs�^PUwOt@\�B" ���
2
+ K��f�-d�Oc��3F�T���Z�]�K��6@���xN��"9�?��.��� 4�/�JTP@=b+r�.�SM�n"�<�-�.���R1�|Z�)��(�ޯ�%s�8-����З���ԅ]
3
+ ��xa�Xj���r�z>��})�J�����t���z-Z�cHf�q�DB^�;����T�#��|�sU��p�Ť���(��妆��u��z܁+��ַnx�^�ƨ