Permalink
Browse files

Merge pull request #26853 from zegomesjf/feature/skip_active_record

don't create db directory when skip active_record
  • Loading branch information...
guilleiguaran committed Oct 21, 2016
2 parents f2c6db4 + 1b72631 commit a08ef99d5f74301e027feb727c680b3a1fda44b2
@@ -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["']/

0 comments on commit a08ef99

Please sign in to comment.