Skip to content

Commit 8947dc4

Browse files
committed
Ensure logs directory to exist
1 parent 6f1cc1e commit 8947dc4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/junethack/database.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
ActiveRecord.schema_format = :sql
1111

12+
Dir.mkdir('logs') unless File.exist?('logs')
13+
1214
configure :development do
1315
puts "Configuring development database"
1416
ActiveRecord::Base.logger = Logger.new("logs/dev_db.log")

0 commit comments

Comments
 (0)