diff --git a/db/seeds.rb b/db/seeds.rb index de87fd7b1..3ab84189c 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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('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? # available reservations hours for machines machine_hours = StatisticType.find_by(key: 'hour', statistic_index_id: 2) diff --git a/test/fixtures/history_values.yml b/test/fixtures/history_values.yml index e045e6767..96c802623 100644 --- a/test/fixtures/history_values.yml +++ b/test/fixtures/history_values.yml @@ -629,3 +629,21 @@ history_value_65: created_at: 2020-06-01 11:12:21.255550000 Z updated_at: 2020-06-01 11:12:21.255550000 Z 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: diff --git a/test/fixtures/settings.yml b/test/fixtures/settings.yml index ad5b5a358..01f1a9b54 100644 --- a/test/fixtures/settings.yml +++ b/test/fixtures/settings.yml @@ -383,3 +383,15 @@ setting_65: created_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 +