File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,6 @@ def initialize(framework, opts = {})
80
80
initialize_database_support
81
81
end
82
82
83
- def initialize_metasploit_data_models
84
- # Provide access to ActiveRecord models shared w/ commercial versions
85
- require "metasploit_data_models"
86
-
87
- metasploit_data_model_migrations_pathname = MetasploitDataModels . root . join (
88
- 'db' ,
89
- 'migrate'
90
- )
91
- ActiveRecord ::Migrator . migrations_paths << metasploit_data_model_migrations_pathname . to_s
92
- end
93
-
94
83
#
95
84
# Do what is necessary to load our database support
96
85
#
@@ -166,6 +155,20 @@ def initialize_drivers
166
155
$KCODE = 'NONE' if RUBY_VERSION =~ /^1\. 8\. /
167
156
end
168
157
158
+ # Loads Metasploit Data Models and adds its migrations to migrations paths.
159
+ #
160
+ # @return [void]
161
+ def initialize_metasploit_data_models
162
+ # Provide access to ActiveRecord models shared w/ commercial versions
163
+ require "metasploit_data_models"
164
+
165
+ metasploit_data_model_migrations_pathname = MetasploitDataModels . root . join (
166
+ 'db' ,
167
+ 'migrate'
168
+ )
169
+ ActiveRecord ::Migrator . migrations_paths << metasploit_data_model_migrations_pathname . to_s
170
+ end
171
+
169
172
#
170
173
# Create a new database sink and initialize it
171
174
#
You can’t perform that action at this time.
0 commit comments