2604fad164
[#46224565] The following rake tasks are added and work similar to how they work in rails apps: * db:create * db:drop * db:migrate * db:migrate:status * db:rollback * db:schema:dump * db:schema:load * db:seed (but no db seeds defined at this time) * db:setup * db:version The hidden task db:test:prepare is also available, which means `rake spec` can depend on it so that the test database is dropped and recreated from the development database when running specs (Although there are yet to be database tests, this branch is in preparation for that work that will be split between multiple developers.)
22 lines
675 B
Plaintext
22 lines
675 B
Plaintext
# Please only use postgresql bound to a TCP port.
|
|
development: &pgsql
|
|
adapter: postgresql
|
|
database: metasploit_framework_development
|
|
username: metasploit_framework_development
|
|
password: __________________________________
|
|
host: localhost
|
|
port: 5432
|
|
pool: 5
|
|
timeout: 5
|
|
|
|
# Warning: The database defined as "test" will be erased and
|
|
# re-generated from your development database when you run "rake".
|
|
# Do not set this db to the same as development or production.
|
|
#
|
|
# Note also, sqlite3 is totally unsupported by Metasploit now.
|
|
test:
|
|
<<: *pgsql
|
|
database: metasploit_framework_test
|
|
username: metasploit_framework_test
|
|
password: ___________________________
|