mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +01:00
set default values
This commit is contained in:
parent
478a6c409d
commit
b243486444
@ -859,6 +859,10 @@ Setting.set('feature_tour_display', 'once') unless Setting.find_by(name: 'featur
|
|||||||
|
|
||||||
Setting.set('email_from', 'noreply@fab-manager.com') unless Setting.find_by(name: 'email_from').try(:value)
|
Setting.set('email_from', 'noreply@fab-manager.com') unless Setting.find_by(name: 'email_from').try(:value)
|
||||||
|
|
||||||
|
Setting.set('base_url_host', 'demo.fab-manager.com') unless Setting.find_by(name: 'base_url_host').try(:value)
|
||||||
|
|
||||||
|
Setting.set('base_url_protocol', 'https') unless Setting.find_by(name: 'base_url_protocol').try(:value)
|
||||||
|
|
||||||
if StatisticCustomAggregation.count.zero?
|
if StatisticCustomAggregation.count.zero?
|
||||||
# available reservations hours for machines
|
# available reservations hours for machines
|
||||||
machine_hours = StatisticType.find_by(key: 'hour', statistic_index_id: 2)
|
machine_hours = StatisticType.find_by(key: 'hour', statistic_index_id: 2)
|
||||||
|
18
test/fixtures/history_values.yml
vendored
18
test/fixtures/history_values.yml
vendored
@ -629,3 +629,21 @@ history_value_65:
|
|||||||
created_at: 2020-06-01 11:12:21.255550000 Z
|
created_at: 2020-06-01 11:12:21.255550000 Z
|
||||||
updated_at: 2020-06-01 11:12:21.255550000 Z
|
updated_at: 2020-06-01 11:12:21.255550000 Z
|
||||||
footprint:
|
footprint:
|
||||||
|
|
||||||
|
history_value_66:
|
||||||
|
id: 66
|
||||||
|
setting_id: 66
|
||||||
|
invoicing_profile_id: 1
|
||||||
|
value: 'demo.fab-manager.com'
|
||||||
|
created_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
updated_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
footprint:
|
||||||
|
|
||||||
|
history_value_67:
|
||||||
|
id: 67
|
||||||
|
setting_id: 67
|
||||||
|
invoicing_profile_id: 1
|
||||||
|
value: 'https'
|
||||||
|
created_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
updated_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
footprint:
|
||||||
|
12
test/fixtures/settings.yml
vendored
12
test/fixtures/settings.yml
vendored
@ -383,3 +383,15 @@ setting_65:
|
|||||||
created_at: 2020-06-01 11:12:21.255550000 Z
|
created_at: 2020-06-01 11:12:21.255550000 Z
|
||||||
updated_at: 2020-06-01 11:12:21.255550000 Z
|
updated_at: 2020-06-01 11:12:21.255550000 Z
|
||||||
|
|
||||||
|
setting_66:
|
||||||
|
id: 66
|
||||||
|
name: base_url_host
|
||||||
|
created_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
updated_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
|
||||||
|
setting_67:
|
||||||
|
id: 67
|
||||||
|
name: base_url_protocol
|
||||||
|
created_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
updated_at: 2020-06-01 17:34:41.422150000 Z
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user