提交 1b726314 编写于 作者: J José Gomes Júnior

don't create db directory when skip active_record

上级 f2c6db41
......@@ -241,6 +241,7 @@ def create_active_record_files
end
def create_db_files
return if options[:skip_active_record]
build(:db)
end
......
......@@ -356,6 +356,7 @@ def test_generator_if_skip_puma_is_given
def test_generator_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_directory "db/"
assert_no_file "config/database.yml"
assert_no_file "app/models/application_record.rb"
assert_file "config/application.rb", /#\s+require\s+["']active_record\/railtie["']/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册