Fixed issue#374. Delete cache in initial setup routine - script/scheduler.rb crashes after recreation of Zammad database.
This commit is contained in:
parent
4d42c54bf1
commit
8f96496a47
2 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
class CreateBase < ActiveRecord::Migration
|
||||
def up
|
||||
|
||||
# clear old caches to start from scratch
|
||||
Cache.clear
|
||||
|
||||
create_table :sessions do |t|
|
||||
t.string :session_id, null: false
|
||||
t.boolean :persistent, null: true
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
#
|
||||
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
|
||||
# Mayor.create(:name => 'Emanuel', :city => cities.first)
|
||||
|
||||
# clear old caches to start from scratch
|
||||
Cache.clear
|
||||
|
||||
Setting.create_if_not_exists(
|
||||
title: 'System Init Done',
|
||||
name: 'system_init_done',
|
||||
|
|
Loading…
Reference in a new issue