Skip to content

Commit 12daeb2

Browse files
authored
Make sure dev fixtures are encrypted (#717)
1 parent 99e3c55 commit 12daeb2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/environments/development.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787

8888
config.web_console.permissions = ["192.168.0.0/16", "172.17.0.0/16", "172.18.0.0/16"]
8989

90+
# Encrypt fixtures when loading them
91+
config.active_record.encryption.encrypt_fixtures = true
92+
9093
# TODO should we combine this with APP_URL_HOST?
9194
config.hosts << ENV["DEV_HOST"] if ENV["DEV_HOST"].present?
9295
config.hosts << Setting.app_url_host if Setting.key_set?(:app_url_host)

test/fixtures/people.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
guest:
2-
email: nil
2+
email: ~
33

44
keith_registered:
55

0 commit comments

Comments
 (0)