提交 9b033d14 编写于 作者: J Jeremy Kemper

Merge remote branch 'mikel/master'

......@@ -28,8 +28,8 @@ namespace :db do
desc 'Create the database defined in config/database.yml for the current Rails.env - also makes test database if in development mode'
task :create => :load_config do
# Make the test database at the same time as the development one
if Rails.env == 'development'
# Make the test database at the same time as the development one, if it exists
if Rails.env.development? && ActiveRecord::Base.configurations['test']
create_database(ActiveRecord::Base.configurations['test'])
end
create_database(ActiveRecord::Base.configurations[Rails.env])
......
......@@ -59,6 +59,9 @@
require 'rails/commands/runner'
require ENV_PATH
when '--version', '-v'
puts "Rails #{Rails::VERSION::STRING}"
when '--help', '-h'
puts HELP_TEXT
when '--version', '-v'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册