2020-10-17 12:16:28 +02:00
|
|
|
# This file should contain all the record creation needed to seed the database with its default values.
|
|
|
|
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
|
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
#
|
|
|
|
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
|
|
|
|
# Character.create(name: 'Luke', movie: movies.first)
|
2021-01-04 22:03:24 +01:00
|
|
|
|
2021-01-26 23:31:45 +01:00
|
|
|
User.create(
|
|
|
|
email: "jlecour@evolix.fr",
|
|
|
|
encrypted_password: Devise::Encryptor.digest(User, '123password')
|
|
|
|
)
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
filter = Filter.create(
|
|
|
|
description: "CronMapping",
|
2021-01-26 23:31:45 +01:00
|
|
|
enabled: true
|
|
|
|
)
|
2021-02-01 14:02:54 +01:00
|
|
|
filter.operations.create({
|
|
|
|
class_name: "EmailOperation::CronMapping",
|
2021-01-26 23:31:45 +01:00
|
|
|
enabled: true
|
|
|
|
})
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
filter = Filter.create(
|
|
|
|
description: "MailingListMapping",
|
2021-01-27 13:43:47 +01:00
|
|
|
enabled: true
|
|
|
|
)
|
2021-02-01 14:02:54 +01:00
|
|
|
filter.operations.create({
|
|
|
|
class_name: "EmailOperation::MailingListMapping",
|
2021-01-27 13:43:47 +01:00
|
|
|
enabled: true
|
|
|
|
})
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
filter = Filter.create(
|
|
|
|
description: "MetadataMapping",
|
2021-01-26 23:31:45 +01:00
|
|
|
enabled: true
|
|
|
|
)
|
2021-02-01 14:02:54 +01:00
|
|
|
filter.operations.create({
|
|
|
|
class_name: "EmailOperation::MetadataMapping",
|
2021-01-26 23:31:45 +01:00
|
|
|
enabled: true
|
|
|
|
})
|