Fixed issue#374. Delete cache in initial setup routine - script/scheduler.rb crashes after recreation of Zammad database.

This commit is contained in:
Martin Edenhofer 2016-11-08 14:15:24 +01:00
parent 4d42c54bf1
commit 8f96496a47
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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',