Skip to content

Commit aec02a8

Browse files
committed
save db to tmp
1 parent d10748e commit aec02a8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/segments/dashboard_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def segment_modals
117117
end
118118

119119
def upload_db(uploaded_file)
120-
save_path = Rails.root.join("db", "segments_database.db")
120+
save_path = Rails.root.join("tmp", "segments_database.db")
121121

122122
File.open(save_path, "wb") do |file|
123123
file.write(uploaded_file.read)

app/models/segment_stats/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ class SegmentStats::Base < ActiveRecord::Base
22
self.abstract_class = true
33
self.establish_connection(
44
adapter: 'sqlite3',
5-
database: "db/segments_database.db"
5+
database: "tmp/segments_database.db"
66
)
77
end

0 commit comments

Comments
 (0)