discourse/db/fixtures/004_screened_ip_addresses.rb
Sam Saffron 30990006a9 DEV: enable frozen string literal on all files
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.

Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00

33 lines
708 B
Ruby

# frozen_string_literal: true
ScreenedIpAddress.seed do |s|
s.id = 1
s.ip_address = "10.0.0.0/8"
s.action_type = ScreenedIpAddress.actions[:do_nothing]
end
ScreenedIpAddress.seed do |s|
s.id = 2
s.ip_address = "192.168.0.0/16"
s.action_type = ScreenedIpAddress.actions[:do_nothing]
end
ScreenedIpAddress.seed do |s|
s.id = 3
s.ip_address = "127.0.0.0/8"
s.action_type = ScreenedIpAddress.actions[:do_nothing]
end
ScreenedIpAddress.seed do |s|
s.id = 4
s.ip_address = "172.16.0.0/12"
s.action_type = ScreenedIpAddress.actions[:do_nothing]
end
# IPv6
ScreenedIpAddress.seed do |s|
s.id = 5
s.ip_address = "fc00::/7"
s.action_type = ScreenedIpAddress.actions[:do_nothing]
end