Class: Decidim::Voca::Rpc::SetupDb
- Inherits:
-
Object
- Object
- Decidim::Voca::Rpc::SetupDb
- Includes:
- VocaDecidim
- Defined in:
- app/rpc/decidim/voca/rpc/setup_db.rb
Constant Summary
Constants included from VocaDecidim
VocaDecidim::DecidimOrganizationColorSettings, VocaDecidim::DecidimOrganizationFeatureFlagSettings, VocaDecidim::DecidimOrganizationFileUploadSettings, VocaDecidim::DecidimOrganizationLocaleSettings, VocaDecidim::DecidimOrganizationNamingSettings, VocaDecidim::DecidimOrganizationPermissionSettings, VocaDecidim::DecidimOrganizationSMTPSettings, VocaDecidim::GetSettingsResponse, VocaDecidim::PingResponse, VocaDecidim::SETTINGS_MACHINE_TRANSLATION_PRIORITY_OPTION, VocaDecidim::SETTINGS_REGISTER_MODE_OPTION, VocaDecidim::SETTINGS_SMTP_AUTHENTICATION_OPTION, VocaDecidim::SETTINGS_SMTP_OPENSSL_OPTION, VocaDecidim::SeedAdminRequest, VocaDecidim::SeedAdminResponse, VocaDecidim::SetSettingsRequest
Instance Method Summary collapse
-
#seed ⇒ Object
migrate the database and insert default values.
Instance Method Details
#seed ⇒ Object
migrate the database and insert default values.
9 10 11 12 13 |
# File 'app/rpc/decidim/voca/rpc/setup_db.rb', line 9 def seed # If an organization is already present, should not seed. return if ::Decidim::Organization.count > 0 seed_organization! end |