├── .codeclimate.yml
├── .dockerignore
├── .editorconfig
├── .github
└── workflows
│ ├── build_baseimage_with_gems.yml
│ ├── remove_st_after_pr.yml
│ └── ruby.yml
├── .gitignore
├── .ruby-gemset
├── .ruby-version
├── CHANGELOG.md
├── Dockerfile
├── Dockerfile.gems
├── Dockerfile.generic
├── Dockerfile.preinstalled_gems
├── Dockerfile.production
├── Gemfile
├── Gemfile.lock
├── LICENSE
├── README.md
├── Rakefile
├── app
├── assets
│ ├── config
│ │ └── manifest.js
│ ├── images
│ │ ├── .keep
│ │ ├── alpha.png
│ │ ├── bg.jpg
│ │ ├── danske.png
│ │ ├── development.png
│ │ ├── eis-logo-et.png
│ │ ├── every_pay.png
│ │ ├── everypay.png
│ │ ├── favicon.ico
│ │ ├── id_card.gif
│ │ ├── lhv.png
│ │ ├── mid.gif
│ │ ├── nordea.png
│ │ ├── registrar
│ │ │ ├── .keep
│ │ │ ├── bg-development.png
│ │ │ ├── bg-staging.png
│ │ │ ├── bg-test.png
│ │ │ └── favicon.ico
│ │ ├── seb.png
│ │ ├── staging.png
│ │ ├── swed.png
│ │ └── test.png
│ ├── javascripts
│ │ ├── admin-manifest.coffee
│ │ ├── admin
│ │ │ ├── app.js
│ │ │ ├── application.coffee
│ │ │ ├── autocomplete.js.coffee
│ │ │ ├── combobox.js
│ │ │ └── domains
│ │ │ │ └── force_delete.js
│ │ ├── datepicker.js
│ │ ├── polyfills
│ │ │ └── node_list_for_each.js
│ │ ├── popover.js
│ │ ├── registrant-manifest.coffee
│ │ ├── registrar-manifest.coffee
│ │ ├── registrar
│ │ │ ├── application.coffee
│ │ │ └── autocomplete.coffee
│ │ ├── shared
│ │ │ └── general.coffee
│ │ ├── spell_check.js
│ │ └── text_field_trimmer.js
│ └── stylesheets
│ │ ├── admin-manifest.sass
│ │ ├── admin
│ │ ├── admin-bootstrap.sass
│ │ ├── admin.sass
│ │ └── bootstrap-dialog-fix.css
│ │ ├── forms.scss
│ │ ├── registrar-manifest.sass
│ │ ├── registrar
│ │ ├── registrar-bootstrap.sass
│ │ └── registrar.sass
│ │ └── shared
│ │ ├── fonts.sass
│ │ ├── general-bootstrap.sass
│ │ ├── general.sass
│ │ └── pdf.sass
├── controllers
│ ├── admin
│ │ ├── account_activities_controller.rb
│ │ ├── accounts_controller.rb
│ │ ├── admin_users_controller.rb
│ │ ├── api_users_controller.rb
│ │ ├── auctions_controller.rb
│ │ ├── bank_statements_controller.rb
│ │ ├── bank_transactions_controller.rb
│ │ ├── base_controller.rb
│ │ ├── billing
│ │ │ └── prices_controller.rb
│ │ ├── blocked_domains_controller.rb
│ │ ├── bounced_mail_addresses_controller.rb
│ │ ├── certificates_controller.rb
│ │ ├── contact_versions_controller.rb
│ │ ├── contacts_controller.rb
│ │ ├── dashboard_controller.rb
│ │ ├── delayed_jobs_controller.rb
│ │ ├── disputes_controller.rb
│ │ ├── dns
│ │ │ └── zones_controller.rb
│ │ ├── domain_versions_controller.rb
│ │ ├── domains
│ │ │ ├── force_delete_controller.rb
│ │ │ └── registry_lock_controller.rb
│ │ ├── domains_controller.rb
│ │ ├── epp_logs_controller.rb
│ │ ├── invoices
│ │ │ └── delivery_controller.rb
│ │ ├── invoices_controller.rb
│ │ ├── legal_documents_controller.rb
│ │ ├── mass_actions_controller.rb
│ │ ├── pending_deletes_controller.rb
│ │ ├── pending_updates_controller.rb
│ │ ├── registrars_controller.rb
│ │ ├── repp_logs_controller.rb
│ │ ├── reserved_domains_controller.rb
│ │ ├── sessions_controller.rb
│ │ ├── settings_controller.rb
│ │ ├── white_ips_controller.rb
│ │ └── zonefiles_controller.rb
│ ├── api
│ │ ├── cors_controller.rb
│ │ └── v1
│ │ │ ├── accreditation_center
│ │ │ ├── auth_controller.rb
│ │ │ ├── base_controller.rb
│ │ │ ├── contacts_controller.rb
│ │ │ ├── domains_controller.rb
│ │ │ ├── invoice_status_controller.rb
│ │ │ └── results_controller.rb
│ │ │ ├── auctions_controller.rb
│ │ │ ├── base_controller.rb
│ │ │ ├── bounces_controller.rb
│ │ │ ├── contact_requests_controller.rb
│ │ │ └── registrant
│ │ │ ├── auth_controller.rb
│ │ │ ├── base_controller.rb
│ │ │ ├── companies_controller.rb
│ │ │ ├── confirms_controller.rb
│ │ │ ├── contacts_controller.rb
│ │ │ ├── domains_controller.rb
│ │ │ └── registry_locks_controller.rb
│ ├── application_controller.rb
│ ├── concerns
│ │ ├── deliverable.rb
│ │ ├── epp_requestable.rb
│ │ ├── error_and_log_handler.rb
│ │ └── shared
│ │ │ └── user_stamper.rb
│ ├── eeid
│ │ └── webhooks
│ │ │ └── identification_requests_controller.rb
│ ├── eis_billing
│ │ ├── base_controller.rb
│ │ ├── directo_response_controller.rb
│ │ ├── e_invoice_response_controller.rb
│ │ ├── invoices_controller.rb
│ │ ├── lhv_connect_transactions_controller.rb
│ │ └── payment_status_controller.rb
│ ├── epp
│ │ ├── base_controller.rb
│ │ ├── contacts_controller.rb
│ │ ├── domains_controller.rb
│ │ ├── errors_controller.rb
│ │ ├── polls_controller.rb
│ │ └── sessions_controller.rb
│ ├── repp
│ │ └── v1
│ │ │ ├── accounts_controller.rb
│ │ │ ├── api_users_controller.rb
│ │ │ ├── auctions_controller.rb
│ │ │ ├── base_controller.rb
│ │ │ ├── certificates
│ │ │ └── p12_controller.rb
│ │ │ ├── certificates_controller.rb
│ │ │ ├── contacts_controller.rb
│ │ │ ├── domains
│ │ │ ├── admin_contacts_controller.rb
│ │ │ ├── base_contacts_controller.rb
│ │ │ ├── contacts_controller.rb
│ │ │ ├── dnssec_controller.rb
│ │ │ ├── nameservers_controller.rb
│ │ │ ├── renews_controller.rb
│ │ │ ├── statuses_controller.rb
│ │ │ └── transfers_controller.rb
│ │ │ ├── domains_controller.rb
│ │ │ ├── invoices_controller.rb
│ │ │ ├── registrar
│ │ │ ├── accreditation_info_controller.rb
│ │ │ ├── accreditation_results_controller.rb
│ │ │ ├── auth_controller.rb
│ │ │ ├── nameservers_controller.rb
│ │ │ ├── notifications_controller.rb
│ │ │ ├── summary_controller.rb
│ │ │ └── xml_console_controller.rb
│ │ │ ├── retained_domains_controller.rb
│ │ │ ├── stats_controller.rb
│ │ │ └── white_ips_controller.rb
│ └── sso
│ │ └── tara_controller.rb
├── helpers
│ ├── application_helper.rb
│ ├── auction_helper.rb
│ ├── default_form_builder.rb
│ ├── form_helper.rb
│ ├── form_tag_helper.rb
│ └── sorted_country_helper.rb
├── interactions
│ ├── actions
│ │ ├── a_and_aaaa_email_validation.rb
│ │ ├── account_activity_create.rb
│ │ ├── base_action.rb
│ │ ├── bulk_nameservers_change.rb
│ │ ├── contact_create.rb
│ │ ├── contact_delete.rb
│ │ ├── contact_update.rb
│ │ ├── contact_verify.rb
│ │ ├── do_request.rb
│ │ ├── domain_create.rb
│ │ ├── domain_delete.rb
│ │ ├── domain_renew.rb
│ │ ├── domain_transfer.rb
│ │ ├── domain_update.rb
│ │ ├── email_check.rb
│ │ ├── invoice_cancel.rb
│ │ ├── record_date_of_test.rb
│ │ └── simple_mail_validator.rb
│ ├── domains
│ │ ├── bulk_renew
│ │ │ ├── single_domain_renew.rb
│ │ │ └── start.rb
│ │ ├── cancel_force_delete
│ │ │ ├── base.rb
│ │ │ ├── cancel_force_delete.rb
│ │ │ ├── clear_force_delete_data.rb
│ │ │ ├── notify_registrar.rb
│ │ │ ├── remove_force_delete_statuses.rb
│ │ │ └── restore_statuses_before_force_delete.rb
│ │ ├── check_balance
│ │ │ ├── mass.rb
│ │ │ └── single_domain.rb
│ │ ├── client_hold
│ │ │ ├── base.rb
│ │ │ ├── process_client_hold.rb
│ │ │ └── set_client_hold.rb
│ │ ├── delete
│ │ │ ├── base.rb
│ │ │ ├── do_delete.rb
│ │ │ └── notify_registrar.rb
│ │ ├── delete_confirm
│ │ │ ├── base.rb
│ │ │ ├── process_action.rb
│ │ │ ├── process_delete_confirmed.rb
│ │ │ └── process_delete_rejected.rb
│ │ ├── delete_confirm_email
│ │ │ └── send_request.rb
│ │ ├── expire_period
│ │ │ ├── base.rb
│ │ │ ├── process_expired.rb
│ │ │ └── start.rb
│ │ ├── expired_pendings
│ │ │ ├── base.rb
│ │ │ ├── clean_all.rb
│ │ │ └── process_clean.rb
│ │ ├── force_delete
│ │ │ ├── base.rb
│ │ │ ├── check_discarded.rb
│ │ │ ├── notify_by_email.rb
│ │ │ ├── notify_multiyears_expiration_domain.rb
│ │ │ ├── notify_registrar.rb
│ │ │ ├── post_set_process.rb
│ │ │ ├── prepare_domain.rb
│ │ │ ├── set_force_delete.rb
│ │ │ └── set_status.rb
│ │ ├── force_delete_email
│ │ │ └── base.rb
│ │ ├── force_delete_lift
│ │ │ └── base.rb
│ │ ├── redemption_grace_period
│ │ │ ├── base.rb
│ │ │ ├── process_grace_period.rb
│ │ │ └── start.rb
│ │ └── update_confirm
│ │ │ ├── base.rb
│ │ │ ├── process_action.rb
│ │ │ ├── process_update_confirmed.rb
│ │ │ └── process_update_rejected.rb
│ └── whois
│ │ ├── delete_record.rb
│ │ ├── update.rb
│ │ └── update_record.rb
├── jobs
│ ├── application_job.rb
│ ├── bounced_emails_cleaner_job.rb
│ ├── check_force_delete_job.rb
│ ├── check_force_delete_lift.rb
│ ├── company_register_status_job.rb
│ ├── csync_job.rb
│ ├── delete_monthly_invoices_job.rb
│ ├── directo_invoice_forward_job.rb
│ ├── directo_invoice_forward_legacy_job.rb
│ ├── dispute_status_update_job.rb
│ ├── domain_delete_confirm_job.rb
│ ├── domain_delete_job.rb
│ ├── domain_expire_email_job.rb
│ ├── domain_update_confirm_job.rb
│ ├── force_delete_daily_admin_notifier_job.rb
│ ├── nameserver_record_validation_job.rb
│ ├── notify_accreditation_admins_and_registrars_job.rb
│ ├── org_registrant_phone_checker_job.rb
│ ├── outzone_invalid_email_domains_job.rb
│ ├── p12_generator_job.rb
│ ├── regenerate_registrar_whoises_job.rb
│ ├── regenerate_subzone_whoises_job.rb
│ ├── registrant_change_confirm_email_job.rb
│ ├── registrant_change_expired_email_job.rb
│ ├── registrant_change_notice_email_job.rb
│ ├── replace_upd_to_obj_upd_prohibited_job.rb
│ ├── scan_csv_registry_businnes_contacts_job.rb
│ ├── send_e_invoice_job.rb
│ ├── send_e_invoice_legacy_job.rb
│ ├── send_monthly_invoices_job.rb
│ ├── sync_accredited_users_job.rb
│ ├── update_whois_record_job.rb
│ ├── validate_dnssec_job.rb
│ └── verify_emails_job.rb
├── lib
│ ├── retryable.rb
│ ├── shunter.rb
│ ├── shunter
│ │ ├── adapters
│ │ │ ├── memory.rb
│ │ │ └── redis.rb
│ │ ├── base.rb
│ │ └── integration
│ │ │ └── throttle.rb
│ └── to_stdout.rb
├── mailers
│ ├── accreditation_center_mailer.rb
│ ├── admin_mailer.rb
│ ├── application_mailer.rb
│ ├── certificate_mailer.rb
│ ├── contact_inform_mailer.rb
│ ├── contact_mailer.rb
│ ├── csync_mailer.rb
│ ├── domain_delete_mailer.rb
│ ├── domain_expire_mailer.rb
│ ├── interceptors
│ │ └── punycode_interceptor.rb
│ ├── invoice_mailer.rb
│ ├── registrant_change_mailer.rb
│ ├── registrar_mailer.rb
│ └── white_ip_mailer.rb
├── models
│ ├── ability.rb
│ ├── account.rb
│ ├── account_activity.rb
│ ├── action.rb
│ ├── admin_domain_contact.rb
│ ├── admin_user.rb
│ ├── api_log
│ │ ├── db.rb
│ │ ├── epp_log.rb
│ │ └── repp_log.rb
│ ├── api_user.rb
│ ├── application_record.rb
│ ├── auction.rb
│ ├── authorization
│ │ └── restricted_ip.rb
│ ├── balance_auto_reload_types
│ │ └── threshold.rb
│ ├── bank_statement.rb
│ ├── bank_transaction.rb
│ ├── billing.rb
│ ├── billing
│ │ ├── price.rb
│ │ ├── reference_no.rb
│ │ └── reference_no
│ │ │ └── base.rb
│ ├── blocked_domain.rb
│ ├── bounced_mail_address.rb
│ ├── business_registry_contact.rb
│ ├── certificate.rb
│ ├── certification_request.rb
│ ├── concerns
│ │ ├── age_validation.rb
│ │ ├── billing
│ │ │ └── price
│ │ │ │ └── expirable.rb
│ │ ├── certificate
│ │ │ └── certificate_concern.rb
│ │ ├── contact
│ │ │ ├── archivable.rb
│ │ │ └── identical.rb
│ │ ├── csync_record
│ │ │ └── diggable.rb
│ │ ├── domain
│ │ │ ├── activatable.rb
│ │ │ ├── bulk_updatable.rb
│ │ │ ├── deletable.rb
│ │ │ ├── discardable.rb
│ │ │ ├── disputable.rb
│ │ │ ├── expirable.rb
│ │ │ ├── force_delete.rb
│ │ │ ├── registry_lockable.rb
│ │ │ ├── releasable.rb
│ │ │ └── transferable.rb
│ │ ├── email_verifable.rb
│ │ ├── epp_errors.rb
│ │ ├── invoice
│ │ │ ├── book_keeping.rb
│ │ │ ├── cancellable.rb
│ │ │ └── payable.rb
│ │ ├── registrar
│ │ │ ├── book_keeping.rb
│ │ │ └── legal_doc.rb
│ │ ├── remove_hold.rb
│ │ ├── roids.rb
│ │ ├── transaction_paid_invoices.rb
│ │ ├── user_events.rb
│ │ ├── version_session.rb
│ │ ├── versions.rb
│ │ ├── white_ip
│ │ │ └── white_ip_concern.rb
│ │ ├── whois_status_populate.rb
│ │ └── zone
│ │ │ └── whois_queryable.rb
│ ├── contact.rb
│ ├── contact
│ │ ├── address.rb
│ │ ├── company_register.rb
│ │ ├── ident.rb
│ │ └── transferable.rb
│ ├── contact_request.rb
│ ├── contact_update_action.rb
│ ├── csync_record.rb
│ ├── deposit.rb
│ ├── directo.rb
│ ├── dispute.rb
│ ├── dns.rb
│ ├── dns
│ │ ├── domain_name.rb
│ │ └── zone.rb
│ ├── dnskey.rb
│ ├── domain.rb
│ ├── domain_contact.rb
│ ├── domain_cron.rb
│ ├── domain_status.rb
│ ├── domain_transfer.rb
│ ├── epp
│ │ ├── contact.rb
│ │ ├── domain.rb
│ │ ├── expired_sessions.rb
│ │ ├── response.rb
│ │ └── response
│ │ │ ├── result.rb
│ │ │ └── result
│ │ │ └── code.rb
│ ├── epp_session.rb
│ ├── feature.rb
│ ├── iban.rb
│ ├── inactive_contacts.rb
│ ├── invoice.rb
│ ├── invoice
│ │ ├── e_invoice_generator.rb
│ │ ├── pdf_generator.rb
│ │ └── vat_rate_calculator.rb
│ ├── invoice_item.rb
│ ├── invoice_state_machine.rb
│ ├── legal_document.rb
│ ├── mass_action.rb
│ ├── nameserver.rb
│ ├── notification.rb
│ ├── payment_order.rb
│ ├── payment_orders
│ │ ├── admin_payment.rb
│ │ ├── bank_link.rb
│ │ ├── every_pay.rb
│ │ ├── lhv.rb
│ │ ├── seb.rb
│ │ ├── swed.rb
│ │ └── system_payment.rb
│ ├── registrant.rb
│ ├── registrant_user.rb
│ ├── registrant_verification.rb
│ ├── registrar.rb
│ ├── registry.rb
│ ├── repp_api.rb
│ ├── reserved_domain.rb
│ ├── retained_domains.rb
│ ├── setting.rb
│ ├── setting_entry.rb
│ ├── tech_domain_contact.rb
│ ├── type
│ │ └── vat_rate.rb
│ ├── user.rb
│ ├── validation_event.rb
│ ├── validation_event
│ │ └── event_type.rb
│ ├── version.rb
│ ├── version
│ │ ├── account_activity_version.rb
│ │ ├── account_version.rb
│ │ ├── action_version.rb
│ │ ├── bank_statement_version.rb
│ │ ├── bank_transaction_version.rb
│ │ ├── billing
│ │ │ └── price_version.rb
│ │ ├── blocked_domain_version.rb
│ │ ├── certificate_version.rb
│ │ ├── contact_version.rb
│ │ ├── dnskey_version.rb
│ │ ├── domain_contact_version.rb
│ │ ├── domain_version.rb
│ │ ├── invoice_item_version.rb
│ │ ├── invoice_version.rb
│ │ ├── nameserver_version.rb
│ │ ├── notification_version.rb
│ │ ├── payment_order_version.rb
│ │ ├── registrant_verification_version.rb
│ │ ├── registrar_version.rb
│ │ ├── reserved_domain_version.rb
│ │ ├── setting_entry_version.rb
│ │ ├── setting_version.rb
│ │ ├── user_version.rb
│ │ └── white_ip_version.rb
│ ├── white_ip.rb
│ ├── whois
│ │ ├── record.rb
│ │ └── server.rb
│ └── whois_record.rb
├── presenters
│ ├── domain_presenter.rb
│ ├── registrant_presenter.rb
│ ├── registrar_presenter.rb
│ └── user_presenter.rb
├── services
│ ├── certificates
│ │ └── certificate_generator.rb
│ ├── contact_notification.rb
│ ├── csv_generator.rb
│ ├── eeid
│ │ ├── base.rb
│ │ └── identification_service.rb
│ ├── eis_billing
│ │ ├── add_deposits.rb
│ │ ├── base.rb
│ │ ├── get_invoice_number.rb
│ │ ├── get_monthly_invoice_numbers.rb
│ │ ├── get_reference_number.rb
│ │ ├── send_data_to_directo.rb
│ │ ├── send_e_invoice.rb
│ │ └── send_invoice_status.rb
│ ├── nameserver_validator.rb
│ ├── object_versions_parser.rb
│ ├── overdue_invoice_canceller.rb
│ ├── partial_search_formatter.rb
│ └── registrant_change.rb
├── validators
│ ├── contact
│ │ └── ident
│ │ │ ├── birth_date_validator.rb
│ │ │ ├── mismatch_validator.rb
│ │ │ ├── national_id_validator.rb
│ │ │ └── reg_no_validator.rb
│ ├── date_time_iso8601_validator.rb
│ ├── domain_name_validator.rb
│ ├── domain_nameserver_validator.rb
│ ├── duration_iso8601_validator.rb
│ ├── object_count_validator.rb
│ └── uniqueness_multi_validator.rb
└── views
│ ├── admin
│ ├── account_activities
│ │ ├── _search_form.html.erb
│ │ └── index.haml
│ ├── accounts
│ │ ├── _account.html.erb
│ │ ├── _form.html.erb
│ │ ├── _search_form.html.erb
│ │ ├── edit.html.erb
│ │ ├── index.html.erb
│ │ ├── new.html.erb
│ │ └── show.html.erb
│ ├── admin_users
│ │ ├── _form.haml
│ │ ├── edit.haml
│ │ ├── index.haml
│ │ ├── new.haml
│ │ └── show.haml
│ ├── api_users
│ │ ├── _api_user.html.erb
│ │ ├── _form.html.erb
│ │ ├── edit.html.erb
│ │ ├── index.html.erb
│ │ ├── new.html.erb
│ │ ├── show.html.erb
│ │ └── show
│ │ │ ├── _certificates.html.erb
│ │ │ └── _details.html.erb
│ ├── auctions
│ │ ├── _modal.html.erb
│ │ └── index.html.erb
│ ├── bank_statements
│ │ ├── _form.haml
│ │ ├── index.haml
│ │ ├── new.haml
│ │ └── show.haml
│ ├── bank_transactions
│ │ ├── _form.haml
│ │ ├── edit.haml
│ │ ├── new.haml
│ │ └── show.haml
│ ├── base
│ │ └── _menu.haml
│ ├── billing
│ │ └── prices
│ │ │ ├── _form.html.erb
│ │ │ ├── _price.html.erb
│ │ │ ├── _search_form.html.erb
│ │ │ ├── edit.html.erb
│ │ │ ├── index.html.erb
│ │ │ └── new.html.erb
│ ├── blocked_domains
│ │ ├── _form.haml
│ │ ├── edit.haml
│ │ ├── index.haml
│ │ └── new.haml
│ ├── bounced_mail_addresses
│ │ ├── index.html.erb
│ │ └── show.html.erb
│ ├── certificates
│ │ ├── new.haml
│ │ └── show.haml
│ ├── contact_versions
│ │ ├── index.haml
│ │ └── show.haml
│ ├── contacts
│ │ ├── _form.haml
│ │ ├── edit.haml
│ │ ├── index.haml
│ │ ├── partials
│ │ │ ├── _address.haml
│ │ │ ├── _domains.haml
│ │ │ ├── _general.haml
│ │ │ ├── _search.haml
│ │ │ └── _statuses.html.erb
│ │ └── show.haml
│ ├── dashboard
│ │ └── show.html.erb
│ ├── delayed_jobs
│ │ └── index.haml
│ ├── disputes
│ │ ├── _form.html.erb
│ │ ├── edit.haml
│ │ ├── index.html.erb
│ │ └── new.haml
│ ├── dns
│ │ └── zones
│ │ │ ├── _form.haml
│ │ │ ├── _zone.html.erb
│ │ │ ├── edit.html.erb
│ │ │ ├── index.html.erb
│ │ │ └── new.html.erb
│ ├── domain_versions
│ │ ├── archive.haml
│ │ └── show.haml
│ ├── domains
│ │ ├── _domain.html.erb
│ │ ├── _force_delete_dialog.html.erb
│ │ ├── _form.haml
│ │ ├── _search_form.html.erb
│ │ ├── edit.html.erb
│ │ ├── form
│ │ │ ├── _pending_delete.haml
│ │ │ └── _pending_update.haml
│ │ ├── index.html.erb
│ │ ├── partials
│ │ │ ├── _admin_contacts.haml
│ │ │ ├── _dnskeys.haml
│ │ │ ├── _general.html.erb
│ │ │ ├── _legal_documents.haml
│ │ │ ├── _nameservers.haml
│ │ │ ├── _owner.haml
│ │ │ ├── _statuses.haml
│ │ │ ├── _tech_contacts.haml
│ │ │ └── _version.haml
│ │ ├── show.html.erb
│ │ └── versions.haml
│ ├── epp_logs
│ │ ├── index.haml
│ │ └── show.haml
│ ├── invoices
│ │ ├── delivery
│ │ │ └── new.html.erb
│ │ ├── index.haml
│ │ ├── new.haml
│ │ ├── partials
│ │ │ ├── _buyer.haml
│ │ │ ├── _details.haml
│ │ │ ├── _items.haml
│ │ │ ├── _monthly_invoice_items.haml
│ │ │ ├── _payment_orders.haml
│ │ │ ├── _search_form.html.erb
│ │ │ └── _seller.haml
│ │ └── show.haml
│ ├── mass_actions
│ │ └── index.html.erb
│ ├── registrars
│ │ ├── _form.html.erb
│ │ ├── _search_form.html.erb
│ │ ├── edit.html.erb
│ │ ├── form
│ │ │ ├── _address.html.erb
│ │ │ ├── _billing.html.erb
│ │ │ └── _preferences.html.erb
│ │ ├── index.html.erb
│ │ ├── new.html.erb
│ │ ├── show.html.erb
│ │ └── show
│ │ │ ├── _api_users.html.erb
│ │ │ ├── _billing.html.erb
│ │ │ ├── _contacts.html.erb
│ │ │ ├── _details.html.erb
│ │ │ ├── _preferences.html.erb
│ │ │ └── _white_ips.html.erb
│ ├── repp_logs
│ │ ├── index.haml
│ │ └── show.haml
│ ├── reserved_domains
│ │ ├── _form.html.erb
│ │ ├── edit.haml
│ │ ├── index.html.erb
│ │ ├── index2.haml
│ │ └── new.haml
│ ├── sessions
│ │ ├── _links.html.erb
│ │ └── new.html.erb
│ ├── settings
│ │ ├── _setting_row.haml
│ │ └── index.haml
│ ├── shared
│ │ └── form
│ │ │ └── _statuses.haml
│ └── white_ips
│ │ ├── _form.haml
│ │ ├── edit.haml
│ │ ├── new.haml
│ │ └── show.haml
│ ├── admin_mailer
│ └── force_delete_daily_summary.html.erb
│ ├── application
│ ├── _flash_messages.html.erb
│ ├── _form_errors.html.erb
│ └── _pagination.html.erb
│ ├── domain
│ └── pdf.haml
│ ├── eis_billing
│ ├── directo_response
│ │ └── update.html.erb
│ ├── e_invoice_response
│ │ └── update.html.erb
│ └── update.json.erb
│ ├── epp
│ ├── contacts
│ │ ├── check.xml.builder
│ │ ├── delete.xml.builder
│ │ ├── info.xml.builder
│ │ ├── partials
│ │ │ └── _check.xml.builder
│ │ └── save.xml.builder
│ ├── domains
│ │ ├── check.xml.builder
│ │ ├── create.xml.builder
│ │ ├── info.xml.builder
│ │ ├── partials
│ │ │ └── _transfer.xml.builder
│ │ ├── renew.xml.builder
│ │ ├── success.xml.builder
│ │ ├── success_pending.xml.builder
│ │ └── transfer.xml.builder
│ ├── error.xml.builder
│ ├── poll
│ │ ├── _extension.xml.builder
│ │ ├── poll_ack.xml.builder
│ │ ├── poll_no_messages.xml.builder
│ │ └── poll_req.xml.builder
│ ├── sample_requests
│ │ ├── contact
│ │ │ ├── check.xml
│ │ │ ├── check_multiple.xml
│ │ │ ├── create.xml
│ │ │ ├── delete.xml
│ │ │ ├── info.xml
│ │ │ └── update_chg.xml
│ │ ├── domain
│ │ │ ├── check.xml
│ │ │ ├── client_hold.xml
│ │ │ ├── create.xml
│ │ │ ├── delete.xml
│ │ │ ├── info.xml
│ │ │ ├── renew.xml
│ │ │ ├── transfer.xml
│ │ │ └── update.xml
│ │ └── poll
│ │ │ ├── poll_ack.xml
│ │ │ └── poll_req.xml
│ ├── sessions
│ │ ├── greeting.xml.builder
│ │ ├── login_success.xml.builder
│ │ └── logout.xml.builder
│ └── shared
│ │ ├── _trID.xml.builder
│ │ └── success.xml.builder
│ ├── invoice
│ ├── monthly_pdf.haml
│ └── pdf.haml
│ ├── layouts
│ ├── admin
│ │ └── base.haml
│ ├── devise.haml
│ ├── mailer.html.erb
│ └── mailer.text.erb
│ ├── mailers
│ ├── accreditation_center_mailer
│ │ ├── test_results_are_expired.html.erb
│ │ ├── test_results_will_expired_in_one_month.html.erb
│ │ ├── test_was_successfully_passed_admin.html.erb
│ │ └── test_was_successfully_passed_registrar.html.erb
│ ├── certificate_mailer
│ │ ├── certificate_signing_requested.html.erb
│ │ ├── certificate_signing_requested.text.erb
│ │ ├── signed.html.erb
│ │ └── signed.text.erb
│ ├── contact_inform_mailer
│ │ ├── company_liquidation.html.erb
│ │ ├── company_liquidation.text.erb
│ │ ├── notify_dnssec.html.erb
│ │ ├── notify_dnssec.text.erb
│ │ ├── notify_nameserver.html.erb
│ │ └── notify_nameserver.text.erb
│ ├── contact_mailer
│ │ ├── email_changed.html.erb
│ │ ├── email_changed.text.erb
│ │ ├── identification_requested.html.erb
│ │ └── identification_requested.text.erb
│ ├── csync_mailer
│ │ ├── dnssec_deleted.html.erb
│ │ └── dnssec_updated.html.erb
│ ├── domain_delete_mailer
│ │ ├── accepted.html.erb
│ │ ├── accepted.text.erb
│ │ ├── confirmation_request.html.erb
│ │ ├── confirmation_request.text.erb
│ │ ├── expired.html.erb
│ │ ├── expired.text.erb
│ │ ├── forced
│ │ │ ├── invalid_company.html.erb
│ │ │ ├── invalid_company.text.erb
│ │ │ ├── invalid_email.html.erb
│ │ │ ├── invalid_email.text.erb
│ │ │ ├── invalid_phone.html.erb
│ │ │ ├── invalid_phone.text.erb
│ │ │ ├── legal_person.html.erb
│ │ │ ├── legal_person.text.erb
│ │ │ ├── private_person.html.erb
│ │ │ └── private_person.text.erb
│ │ ├── rejected.html.erb
│ │ └── rejected.text.erb
│ ├── domain_expire_mailer
│ │ ├── expired.html.erb
│ │ ├── expired.text.erb
│ │ ├── expired_soft.html.erb
│ │ └── expired_soft.text.erb
│ ├── invoice_mailer
│ │ ├── invoice_email.html.erb
│ │ └── invoice_email.text.erb
│ ├── registrant_change_mailer
│ │ ├── accepted.html.erb
│ │ ├── accepted.text.erb
│ │ ├── confirmation_request.html.erb
│ │ ├── confirmation_request.text.erb
│ │ ├── expired.html.erb
│ │ ├── expired.text.erb
│ │ ├── notification.html.erb
│ │ ├── notification.text.erb
│ │ ├── rejected.html.erb
│ │ └── rejected.text.erb
│ ├── registrar_mailer
│ │ ├── contact_verified.html.erb
│ │ └── contact_verified.text.erb
│ ├── shared
│ │ ├── registrant
│ │ │ ├── _registrant.en.html.erb
│ │ │ ├── _registrant.en.text.erb
│ │ │ ├── _registrant.et.html.erb
│ │ │ └── _registrant.et.text.erb
│ │ ├── registrar
│ │ │ ├── _registrar.en.html.erb
│ │ │ ├── _registrar.en.text.erb
│ │ │ ├── _registrar.et.html.erb
│ │ │ ├── _registrar.et.text.erb
│ │ │ ├── _registrar.ru.html.erb
│ │ │ └── _registrar.ru.text.erb
│ │ └── signatures
│ │ │ ├── _signature.en.html.erb
│ │ │ ├── _signature.en.text.erb
│ │ │ ├── _signature.et.html.erb
│ │ │ ├── _signature.et.text.erb
│ │ │ ├── _signature.ru.html.erb
│ │ │ └── _signature.ru.text.erb
│ └── white_ip_mailer
│ │ ├── api_ip_address_deleted.html.erb
│ │ ├── api_ip_address_deleted.text.erb
│ │ ├── api_ip_address_updated.html.erb
│ │ ├── api_ip_address_updated.text.erb
│ │ ├── committed.html.erb
│ │ └── committed.text.erb
│ └── shared
│ ├── _errors.haml
│ ├── _flash.haml
│ ├── _full_errors.haml
│ └── _title.haml
├── bin
├── bundle
├── rails
├── rake
├── setup
├── setup_with_build_deps
├── update
└── yarn
├── config.ru
├── config
├── application.rb
├── application.yml.sample
├── boot.rb
├── cable.yml
├── credentials.yml.enc
├── database.yml.sample
├── database_development.yml.sample
├── database_registrant.yml.sample
├── database_travis.yml
├── deploy.rb.sample
├── environment.rb
├── environments
│ ├── demo.rb
│ ├── development.rb.sample
│ ├── production.rb
│ ├── staging.rb
│ ├── staging.rb.sample
│ └── test.rb
├── initializers
│ ├── airbrake.rb
│ ├── apipie.rb
│ ├── application_controller_renderer.rb
│ ├── arel.rb
│ ├── assets.rb
│ ├── aws_ses.rb
│ ├── backtrace_silencers.rb
│ ├── company_register.rb
│ ├── content_security_policy.rb
│ ├── cookies_serializer.rb
│ ├── devise.rb
│ ├── dry_types.rb
│ ├── e_invoice.rb
│ ├── figaro.rb
│ ├── file_exists_alias.rb
│ ├── filter_parameter_logging.rb
│ ├── inflections.rb
│ ├── kaminari.rb
│ ├── libs.rb
│ ├── load_schemas.rb
│ ├── mime_types.rb
│ ├── money.rb
│ ├── monkey_patches.rb
│ ├── new_framework_defaults.rb
│ ├── new_framework_defaults_5_1.rb
│ ├── new_framework_defaults_5_2.rb
│ ├── new_framework_defaults_6_0.rb
│ ├── omniauth.rb
│ ├── ransack.rb
│ ├── session_store.rb
│ ├── sidekiq.rb
│ ├── strong_migrations.rb
│ ├── truemail.rb
│ └── wrap_parameters.rb
├── locales
│ ├── account_activities.en.yml
│ ├── admin
│ │ ├── account_activities.en.yml
│ │ ├── accounts.en.yml
│ │ ├── admin_users.en.yml
│ │ ├── api_users.en.yml
│ │ ├── bank_statements.en.yml
│ │ ├── base.en.yml
│ │ ├── billing
│ │ │ └── prices.en.yml
│ │ ├── blocked_domains.en.yml
│ │ ├── certificates.en.yml
│ │ ├── contact_versions.en.yml
│ │ ├── contacts.en.yml
│ │ ├── disputes.en.yml
│ │ ├── dns
│ │ │ └── zones.en.yml
│ │ ├── domain_versions.en.yml
│ │ ├── domains.en.yml
│ │ ├── domains
│ │ │ └── force_delete.en.yml
│ │ ├── email_verifable.en.yml
│ │ ├── email_verifable.et.yml
│ │ ├── epp_logs.en.yml
│ │ ├── invoices.en.yml
│ │ ├── invoices
│ │ │ └── delivery.en.yml
│ │ ├── legal_documents.en.yml
│ │ ├── legal_documents.et.yml
│ │ ├── menu.en.yml
│ │ ├── registrars.en.yml
│ │ ├── repp_logs.en.yml
│ │ ├── reserved_domains.en.yml
│ │ ├── sessions.en.yml
│ │ ├── settings.en.yml
│ │ └── white_ips.en.yml
│ ├── api
│ │ └── authorization.en.yml
│ ├── api_users.en.yml
│ ├── contacts.en.yml
│ ├── contacts.et.yml
│ ├── devise.en.yml
│ ├── devise.et.yml
│ ├── en.yml
│ ├── epp
│ │ ├── contacts.en.yml
│ │ └── domains.en.yml
│ ├── et.yml
│ ├── idents.yml
│ ├── mailers
│ │ ├── contact.en.yml
│ │ ├── csync.en.yml
│ │ ├── domain_delete.en.yml
│ │ ├── domain_expire.en.yml
│ │ ├── invoice.en.yml
│ │ ├── registrant_change.en.yml
│ │ └── registrar.en.yml
│ ├── nameservers.en.yml
│ ├── notifications.en.yml
│ ├── registrant
│ │ ├── base.en.yml
│ │ ├── contacts.en.yml
│ │ ├── domain_delete_confirms.en.yml
│ │ ├── domains.en.yml
│ │ └── sessions.en.yml
│ ├── registrar
│ │ ├── account.en.yml
│ │ ├── account_activities.en.yml
│ │ ├── admin_contacts.en.yml
│ │ ├── admin_contacts.yml
│ │ ├── authorization.en.yml
│ │ ├── base.en.yml
│ │ ├── bulk_change.en.yml
│ │ ├── contacts.en.yml
│ │ ├── current_user.en.yml
│ │ ├── domain_transfers.en.yml
│ │ ├── domains.en.yml
│ │ ├── invoices.en.yml
│ │ ├── invoices
│ │ │ └── delivery.en.yml
│ │ ├── nameservers.en.yml
│ │ ├── payments.en.yml
│ │ ├── polls.en.yml
│ │ ├── sessions.en.yml
│ │ ├── settings
│ │ │ └── balance_auto_reload.en.yml
│ │ └── tech_contacts.en.yml
│ ├── registrars.en.yml
│ ├── registrars.et.yml
│ ├── tara.en.yml
│ └── tara.et.yml
├── newrelic.yml
├── puma.rb
├── routes.rb
├── schedule.rb
├── secrets.yml
├── sidekiq.yml
├── spring.rb
└── storage.yml
├── db
├── api_log_schema.rb
├── data
│ ├── 20150601083516_add_cert_common_name.rb
│ ├── 20150601083800_add_cert_md5.rb
│ ├── 20150609093515_add_renew_setting.rb
│ ├── 20150610111019_add_expire_settings.rb
│ ├── 20150612125720_refactor_domain_statuses.rb
│ ├── 20150707103801_refactor_contact_statuses.rb
│ ├── 20200225085234_convert_domain_delete_date.rb
│ ├── 20200225085433_delete_orphaned_registrant_verifications.rb
│ ├── 20200225085539_regenerate_registrar_reference_numbers.rb
│ ├── 20200608084321_fill_email_verifications.rb
│ ├── 20200702074549_fill_single_characted_blocked_domains.rb
│ ├── 20200702104334_add_legal_document_mandatory_setting.rb
│ ├── 20200812093540_copy_legacy_settings_to_new_model.rb
│ ├── 20200901131427_remove_unused_setting_entries.rb
│ ├── 20200911104302_fix_typo_in_setting_name.rb
│ ├── 20201007104651_make_whois_disclamer_i18ned.rb
│ └── 20210405081552_migrate_que_jobs.rb
├── data_schema.rb
├── migrate
│ ├── 20140616073945_init.rb
│ ├── 20140620130107_create_epp_users.rb
│ ├── 20140627082711_create_epp_sessions.rb
│ ├── 20140701130945_add_name_dirty_to_domains.rb
│ ├── 20140702144833_countries_table_rename.rb
│ ├── 20140702145448_address_column_rename.rb
│ ├── 20140724084927_add_ident_to_contact.rb
│ ├── 20140730082358_add_reserved_domains.rb
│ ├── 20140730082532_add_ident_type_to_contact.rb
│ ├── 20140730104916_add_period_to_domain.rb
│ ├── 20140730141443_add_contacts_to_domain.rb
│ ├── 20140731073300_add_org_name_to_contact.rb
│ ├── 20140731081816_add_nameservers_to_domain.rb
│ ├── 20140801140249_rename_nameserver_name.rb
│ ├── 20140804095654_add_user_stamps_to_contact.rb
│ ├── 20140808132327_add_period_unit_to_domain.rb
│ ├── 20140813102245_add_streets_to_address.rb
│ ├── 20140813135408_add_ipv6_to_nameserver.rb
│ ├── 20140815082619_create_setting_groups.rb
│ ├── 20140815110028_populate_settings.rb
│ ├── 20140815114000_add_auth_info_to_contact.rb
│ ├── 20140819095802_create_domains_statuses.rb
│ ├── 20140819103517_populate_domain_statuses.rb
│ ├── 20140822122938_add_postal_info_to_address.rb
│ ├── 20140826082057_create_domain_nameservers.rb
│ ├── 20140826103454_drop_domains_nameservers.rb
│ ├── 20140827140759_add_transfer_fields_to_domain.rb
│ ├── 20140828072329_populate_general_domain_settings.rb
│ ├── 20140828074404_create_domain_transfer.rb
│ ├── 20140828080320_remove_transfer_fields_from_domain.rb
│ ├── 20140828133057_create_contact_disclosures.rb
│ ├── 20140902121843_refactor_domain_statuses.rb
│ ├── 20140911101310_add_domain_directly_to_nameserver.rb
│ ├── 20140911101604_clean_redundant_fields.rb
│ ├── 20140925073340_remove_address_type.rb
│ ├── 20140925073734_add_name_to_contact.rb
│ ├── 20140925073831_add_devise_to_users.rb
│ ├── 20140925084916_add_admin_to_users.rb
│ ├── 20140925085340_add_identity_code_to_users.rb
│ ├── 20140925101927_add_registrar_to_users.rb
│ ├── 20140926081324_create_versions.rb
│ ├── 20140926082627_contact_and_version_archiving.rb
│ ├── 20140926121409_domain_related_archives.rb
│ ├── 20140929095329_add_wait_until_to_domain_transfer.rb
│ ├── 20140930093039_add_country_to_users.rb
│ ├── 20141001085322_create_dnskeys.rb
│ ├── 20141006124904_add_dnskey_range_validation.rb
│ ├── 20141006130306_add_registrar_to_contacts.rb
│ ├── 20141008134959_add_dnskey_settings.rb
│ ├── 20141009100818_create_delegation_signer.rb
│ ├── 20141009101337_add_delegation_signer_to_dnskey.rb
│ ├── 20141010085152_add_snapshot_to_domain.rb
│ ├── 20141010130412_add_ds_filelds_to_dnskey.rb
│ ├── 20141014073435_change_public_key_type_to_text.rb
│ ├── 20141015135255_create_settings.rb
│ ├── 20141015135742_correct_settings.rb
│ ├── 20141105150721_create_messages.rb
│ ├── 20141111105931_create_delayed_jobs.rb
│ ├── 20141114130737_create_keyrelay.rb
│ ├── 20141120110330_create_zonefile_setting.rb
│ ├── 20141120140837_add_ee_domain_objects.rb
│ ├── 20141121093125_add_zonefile_procedure.rb
│ ├── 20141124105221_remove_address_type_from_contact_disclosure.rb
│ ├── 20141125111414_create_nameservers_cache.rb
│ ├── 20141126140434_add_serial_to_zonefile_procedure.rb
│ ├── 20141127091027_remove_defaults_from_disclosure.rb
│ ├── 20141202114457_remove_ttl_from_zonefile_ds.rb
│ ├── 20141203090115_fix_invalid_ips_in_zonefile_prodecure.rb
│ ├── 20141210085432_add_code_cache_for_domain_contact.rb
│ ├── 20141211095604_glue_records_fix_in_zonefile_procedure.rb
│ ├── 20141215085117_remove_ns_caching.rb
│ ├── 20141216075056_create_contact_statuses.rb
│ ├── 20141216133831_remove_registrar_from_user.rb
│ ├── 20141218154829_populate_roles.rb
│ ├── 20141229115619_create_legal_documents.rb
│ ├── 20150105134026_drop_cached_nameservers.rb
│ ├── 20150109081914_create_api_log_tables.rb
│ ├── 20150110000000_rename_epp_users_to_api_users.rb
│ ├── 20150110113257_add_json_based_versions.rb
│ ├── 20150122091556_create_version_associations.rb
│ ├── 20150122091557_add_transaction_id_column_to_versions.rb
│ ├── 20150128134352_drop_all_versions_disabled_by_default.rb
│ ├── 20150129093938_add_versions.rb
│ ├── 20150129144652_add_creator_and_updater.rb
│ ├── 20150130085458_add_more_fields_to_registrar.rb
│ ├── 20150130155904_add_name_server_version_ids.rb
│ ├── 20150130180452_add_meta_to_domain.rb
│ ├── 20150130191056_add_session_id_to_log.rb
│ ├── 20150200000000_add_whois_body.rb
│ ├── 20150202084444_refactor_countries.rb
│ ├── 20150202140346_refactor_roles.rb
│ ├── 20150203135303_add_new_address_fields_to_registrar.rb
│ ├── 20150212125339_add_state_to_address.rb
│ ├── 20150213104014_merge_api_user_and_user.rb
│ ├── 20150217133755_add_country_code_ident.rb
│ ├── 20150217133937_add_index_for_contact_code.rb
│ ├── 20150223104842_create_certificates.rb
│ ├── 20150226121252_remove_country_id_columns.rb
│ ├── 20150226144723_add_legacy_columns_for_registrar.rb
│ ├── 20150227092508_add_legacy_columns_for_contact.rb
│ ├── 20150227113121_change_api_user_default_value.rb
│ ├── 20150302161712_add_legacy_columns_for_domain.rb
│ ├── 20150303130729_add_code_to_registrar.rb
│ ├── 20150303151224_data_update_regisntrar_codes.rb
│ ├── 20150305092921_add_pricelist.rb
│ ├── 20150318084300_add_domain_contact_type.rb
│ ├── 20150318085110_update_domain_contact_data.rb
│ ├── 20150318114921_add_address_attributes.rb
│ ├── 20150319125655_update_contact_data.rb
│ ├── 20150320132023_create_invoices.rb
│ ├── 20150330083700_depricate_contact_disclouser_table.rb
│ ├── 20150402114712_drop_delayed_job.rb
│ ├── 20150407145943_add_invoice_columns.rb
│ ├── 20150408081917_create_invoice_items.rb
│ ├── 20150410124724_create_accounts.rb
│ ├── 20150410132037_create_account_activities.rb
│ ├── 20150413080832_create_bank_transactions.rb
│ ├── 20150413102310_create_bank_statements.rb
│ ├── 20150413115829_create_banklink_transactions.rb
│ ├── 20150413140933_add_identity_code_index.rb
│ ├── 20150414092249_add_reference_no_to_registrar.rb
│ ├── 20150414124630_fix_account_activities_name.rb
│ ├── 20150414151357_data_update.rb
│ ├── 20150415075408_fix_account_balances_to_decimal.rb
│ ├── 20150416080828_add_currency_to_account.rb
│ ├── 20150416091357_rename_domain_owner_to_registrant.rb
│ ├── 20150416092026_add_description_to_account_activity.rb
│ ├── 20150416094704_add_indexes.rb
│ ├── 20150417082723_create_versions_for_billing.rb
│ ├── 20150421134820_add_whosi_json_body.rb
│ ├── 20150422092514_add_whois_body_to_registry.rb
│ ├── 20150422132631_save_legal_docs_to_disk.rb
│ ├── 20150422134243_rename_whois_body.rb
│ ├── 20150423083308_add_number_to_invoices.rb
│ ├── 20150427073517_add_cancelled_at_to_invoice.rb
│ ├── 20150428075052_add_sum_cache_to_invoice.rb
│ ├── 20150429135339_add_missing_data.rb
│ ├── 20150430121807_add_registrar_id_to_whois_record.rb
│ ├── 20150504104922_add_legacy_registrar_code.rb
│ ├── 20150504110926_validate_registrar_codes.rb
│ ├── 20150505111437_upcase_all_contact_codes.rb
│ ├── 20150511120755_add_index_to_contact_type.rb
│ ├── 20150512160938_add_registrant_changed_at_to_domain.rb
│ ├── 20150513080013_add_registrant_verification_token.rb
│ ├── 20150514132606_add_registrant_ident_to_users.rb
│ ├── 20150515103222_add_pending_requests.rb
│ ├── 20150518084324_add_registrant_verifications.rb
│ ├── 20150519094929_add_aciton_to_registrant_verification.rb
│ ├── 20150519095416_add_domain_id_to_registrant_verifications.rb
│ ├── 20150519102521_add_action_type_to_registrant_verifications.rb
│ ├── 20150519115050_create_white_ip.rb
│ ├── 20150519140853_create_white_ip_log.rb
│ ├── 20150519144118_add_devise_attributes.rb
│ ├── 20150520163237_add_defalut_role.rb
│ ├── 20150520164507_add_registrar_id_to_epp_session.rb
│ ├── 20150521120145_add_fields_for_certificate.rb
│ ├── 20150603141549_add_decimal_type.rb
│ ├── 20150603211318_change_price_to_decimal.rb
│ ├── 20150603212659_add_duration_to_pricelist.rb
│ ├── 20150609103333_update_pricelist_chema.rb
│ ├── 20150610112238_add_outzone_at_and_delete_at_to_domain.rb
│ ├── 20150610144547_add_force_delete_at_to_domain.rb
│ ├── 20150611124920_add_que.rb
│ ├── 20150612123111_add_statuses_to_domain.rb
│ ├── 20150701074344_create_blocked_domains.rb
│ ├── 20150703084632_increase_precision_of_pricelist.rb
│ ├── 20150706091724_add_activity_type_to_account_activities.rb
│ ├── 20150707103241_add_statuses_to_contact.rb
│ ├── 20150707104937_refactor_reserved_domains.rb
│ ├── 20150707154543_increase_decimal_precision.rb
│ ├── 20150709092549_add_reserved_field_to_domain.rb
│ ├── 20150713113436_add_log_pricelist_id_to_account_activity.rb
│ ├── 20150722071128_add_contact_and_domain_status_notes.rb
│ ├── 20150803080914_add_ns_data_to_zones.rb
│ ├── 20150810114746_add_statuses_backup_for_domains.rb
│ ├── 20150825125118_create_email_templates.rb
│ ├── 20150903105659_add_updated_token.rb
│ ├── 20150910113839_add_copy_from_id.rb
│ ├── 20150915094707_add_multiple_interfaces_for_white_ip.rb
│ ├── 20150921110152_update_contacts_logs.rb
│ ├── 20150921111842_rename_contact_ident_updator.rb
│ ├── 20151028183132_add_updated_at_to_dnskey.rb
│ ├── 20151029152638_add_legacy_id_to_users.rb
│ ├── 20151112160452_add_legacy_id_to_reserved_domains.rb
│ ├── 20151117081204_drop_log_legal_documents.rb
│ ├── 20151120090455_index_domains_on_name.rb
│ ├── 20151124200353_add_ident_autofill.rb
│ ├── 20151125155601_restore_ttl_to_zonefile.rb
│ ├── 20151127091716_restore_ttl_to_zonefile2.rb
│ ├── 20151130175654_nameservers_i_ps_are_arrays.rb
│ ├── 20151202123506_name_and_password_for_reserved_domain.rb
│ ├── 20151209122816_create_business_registry_caches.rb
│ ├── 20160108135436_name_and_password_for_blocked_domain.rb
│ ├── 20160113143447_create_directos.rb
│ ├── 20160118092454_add_in_directo_to_invoice.rb
│ ├── 20160218102355_index_domain_statuses.rb
│ ├── 20160225113801_add_up_id_value_to_domain.rb
│ ├── 20160225113812_add_up_id_value_to_contact.rb
│ ├── 20160226132045_add_up_date_value_to_domain.rb
│ ├── 20160226132056_add_up_date_value_to_contact.rb
│ ├── 20160304125933_add_invoice_number_to_directo.rb
│ ├── 20160311085957_add_test_registrar_to_registrar.rb
│ ├── 20160405131315_add_request_to_directo.rb
│ ├── 20160411140719_add_matching_column.rb
│ ├── 20160414110443_add_time_indexing_to_epp_log.rb
│ ├── 20160421074023_add_log_matching_column.rb
│ ├── 20160429114732_add_puny_hostname_to_nameserver.rb
│ ├── 20160527110738_change_contact_statuses_default.rb
│ ├── 20160629114503_add_hash_to_legal_doc.rb
│ ├── 20161004101419_adduuid_index_to_epp_logs.rb
│ ├── 20161227193500_update_generate_zone_file_function.rb
│ ├── 20170221115548_rename_registrar_url_to_website.rb
│ ├── 20170419120048_rename_zonefile_settings_to_zones.rb
│ ├── 20170420125200_remove_log_zonefile_settings.rb
│ ├── 20170422130054_update_generate_zonefile_sql.rb
│ ├── 20170422142116_rename_zonefile_settings_in_generate_zonefile.rb
│ ├── 20170422162824_change_pricelist_duration_type_to_interval.rb
│ ├── 20170423151046_rename_pricelists_to_prices.rb
│ ├── 20170423210622_change_price_price_cents_type_to_integer.rb
│ ├── 20170423214500_remove_price_price_currency.rb
│ ├── 20170423222302_remove_price_price_cents_default.rb
│ ├── 20170423225333_add_zone_to_prices.rb
│ ├── 20170424115801_add_unique_index_to_zone_origin.rb
│ ├── 20170506144743_remove_price_desc.rb
│ ├── 20170506155009_rename_account_activity_log_pricelist_id_to_price_id.rb
│ ├── 20170506162952_add_account_activity_account_id_foreign_key.rb
│ ├── 20170506205356_add_account_activity_invoice_id_fk.rb
│ ├── 20170506205946_add_account_activity_bank_transaction_id_fk.rb
│ ├── 20170506212014_add_account_registrar_fk.rb
│ ├── 20170509215614_remove_addresses_with_versions.rb
│ ├── 20170604182521_remove_log_pricelists.rb
│ ├── 20170606133501_add_foreign_key_constraints_to_domains.rb
│ ├── 20170606150352_change_domain_registrar_and_registrant_to_not_null.rb
│ ├── 20170606202859_improve_contact_registrar_id.rb
│ ├── 20171009080822_add_user_registrar_id_fk.rb
│ ├── 20171009082321_drop_api_users.rb
│ ├── 20171025113808_rename_registrar_directo_handle_to_accounting_customer_code.rb
│ ├── 20171025153841_change_registrar_accounting_customer_code_to_not_null.rb
│ ├── 20171121233843_add_registrar_language.rb
│ ├── 20171123035941_change_registrar_language_to_not_null.rb
│ ├── 20180112080312_remove_domain_contacts_contact_type.rb
│ ├── 20180112084221_add_domain_contacts_contact_id_fk.rb
│ ├── 20180112084442_add_domain_contacts_domain_id_fk.rb
│ ├── 20180120172042_add_domain_transfers_domain_id_fk.rb
│ ├── 20180120172649_add_domain_transfers_transfer_from_id_fk.rb
│ ├── 20180120172657_add_domain_transfers_transfer_to_id_fk.rb
│ ├── 20180120182712_drop_log_domain_transfers.rb
│ ├── 20180120183441_remove_domain_transfers_paper_trail.rb
│ ├── 20180121165304_rename_domains_auth_info_to_transfer_code.rb
│ ├── 20180122105335_change_domains_transfer_code_to_not_null.rb
│ ├── 20180123154407_rename_contacts_copy_from_id_to_original_id.rb
│ ├── 20180123165604_rename_domain_transfers_transfer_from_id_to_old_registrar_id.rb
│ ├── 20180123170112_rename_domain_transfers_transfer_to_id_to_new_registrar_id.rb
│ ├── 20180125092422_change_contacts_auth_info_to_not_null.rb
│ ├── 20180126104536_change_contacts_code_to_not_null.rb
│ ├── 20180126104903_add_unique_constraint_to_contacts_code.rb
│ ├── 20180129143538_add_nameservers_domain_id_fk.rb
│ ├── 20180129232054_change_nameservers_domain_id_to_not_null.rb
│ ├── 20180129233223_change_nameservers_hostname_to_not_null.rb
│ ├── 20180206213435_change_epp_sessions_session_id_to_not_null.rb
│ ├── 20180206234620_add_epp_sessions_user_id.rb
│ ├── 20180207071528_extract_user_id_from_epp_sessions_data.rb
│ ├── 20180207072139_remove_epp_sessions_data.rb
│ ├── 20180211011450_change_messages_registrar_id_to_not_null.rb
│ ├── 20180211011948_add_messages_registrar_id_fk.rb
│ ├── 20180212123810_remove_epp_sessions_registrar_id.rb
│ ├── 20180212152810_add_epp_sessions_session_id_unique_constraint.rb
│ ├── 20180212154731_remove_epp_sessions_session_id_unique_index.rb
│ ├── 20180213183818_change_epp_sessions_user_id_to_not_null.rb
│ ├── 20180214200224_add_domain_transfers_constraints.rb
│ ├── 20180214213743_change_messages_body_to_not_null.rb
│ ├── 20180218004148_change_messages_attached_obj_id_type_to_int.rb
│ ├── 20180228055259_add_registrars_vat_rate.rb
│ ├── 20180228064342_rename_invoices_vat_prc_to_vat_rate.rb
│ ├── 20180228070102_change_invoices_vat_rate_type.rb
│ ├── 20180228070431_change_invoice_vat_rate_to_null.rb
│ ├── 20180228074442_remove_registrars_vat.rb
│ ├── 20180306180401_remove_people.rb
│ ├── 20180306181538_remove_countries.rb
│ ├── 20180306181554_remove_log_countries.rb
│ ├── 20180306181911_remove_data_migrations.rb
│ ├── 20180306182456_remove_cached_nameservers.rb
│ ├── 20180306182758_remove_contact_statuses.rb
│ ├── 20180306182941_remove_log_contact_statuses.rb
│ ├── 20180306183540_remove_domain_statuses.rb
│ ├── 20180306183549_remove_log_domain_statuses.rb
│ ├── 20180308123240_remove_registrar_billing_address.rb
│ ├── 20180309053424_add_registrars_unique_constraints.rb
│ ├── 20180309053921_remove_registrars_indexes.rb
│ ├── 20180309054510_add_registrars_not_null_constraints.rb
│ ├── 20180310142630_remove_invoices_invoice_type.rb
│ ├── 20180313090437_rename_invoices_sum_cache_to_total.rb
│ ├── 20180313124751_change_invoices_total_to_not_null.rb
│ ├── 20180314122722_add_invoices_buyer_vat_no.rb
│ ├── 20180327151906_remove_domains_valid_from.rb
│ ├── 20180331200125_change_domains_valid_to_to_not_null.rb
│ ├── 20180422154642_rename_domains_statuses_backup_to_statuses_before_force_delete.rb
│ ├── 20180515105348_add_contact_requests_table.rb
│ ├── 20180612042234_enable_pgcrypto_ext.rb
│ ├── 20180612042625_add_uuid_to_contacts.rb
│ ├── 20180612042953_add_uuid_to_domains.rb
│ ├── 20180613030330_change_contacts_and_domains_uuid_to_not_null.rb
│ ├── 20180613045614_add_contacts_and_domains_uuid_uniq_constraint.rb
│ ├── 20180627115124_remove_foreign_key_constraint_from_contact_request.rb
│ ├── 20180713154915_rename_users_password_to_plain_text_password.rb
│ ├── 20180801114403_change_contacts_name_to_not_null.rb
│ ├── 20180808064402_add_registry_lock_time_column.rb
│ ├── 20180816123540_change_contacts_email_to_not_null.rb
│ ├── 20180823161237_rename_messages_to_notifications.rb
│ ├── 20180823163548_rename_log_messages_to_log_notifications.rb
│ ├── 20180823174331_rename_notifications_body_to_text.rb
│ ├── 20180823212823_rename_notifications_queued_to_read.rb
│ ├── 20180824092855_change_domain_pending_json_to_jsonb.rb
│ ├── 20180824102834_change_notifications_read_to_not_null.rb
│ ├── 20180824215326_create_actions.rb
│ ├── 20180825193437_change_actions_operation_to_not_null.rb
│ ├── 20180825232819_add_contact_id_to_actions.rb
│ ├── 20180826162821_add_action_id_to_notifications.rb
│ ├── 20181001090536_change_reference_no_to_not_null.rb
│ ├── 20181002090319_remove_domain_status_field.rb
│ ├── 20181017092829_rename_invoice_items_amount_to_quantity.rb
│ ├── 20181017153658_add_invoice_items_invoice_id_fk.rb
│ ├── 20181017153812_change_invoice_items_invoice_id_to_not_null.rb
│ ├── 20181017153935_change_invoice_items_quantity_to_not_null.rb
│ ├── 20181017154038_change_invoice_items_unit_to_not_null.rb
│ ├── 20181017154143_change_invoice_items_price_to_not_null.rb
│ ├── 20181017205123_change_invoices_due_date_to_date.rb
│ ├── 20181022100114_add_invoices_issue_date.rb
│ ├── 20181102124618_remove_whois_records_body.rb
│ ├── 20181108154921_add_contacts_disclosed_attributes.rb
│ ├── 20181129150515_create_released_domains.rb
│ ├── 20181212105100_create_auctions.rb
│ ├── 20181212145456_change_auctions_uuid_default.rb
│ ├── 20181212145914_change_auctions_uuid_to_not_null.rb
│ ├── 20181213113115_rename_released_domains_to_domain_names.rb
│ ├── 20181217144701_rename_domain_names_to_auctionable_domains.rb
│ ├── 20181217144845_remove_auctionable_domains_at_auction.rb
│ ├── 20181220094738_remove_auctionable_domains.rb
│ ├── 20181220095053_remove_auctions_not_null_constraints.rb
│ ├── 20181223153407_add_auctions_registration_code.rb
│ ├── 20181226211337_change_auctions_status.rb
│ ├── 20181227155537_add_payment_not_received_to_auction_status.rb
│ ├── 20181227172042_change_auctions_status_to_string.rb
│ ├── 20181230231015_add_auctions_registration_code_uniq_constraint.rb
│ ├── 20190102114702_change_auctions_uuid.rb
│ ├── 20190102115333_add_auctions_uuid_uniq_constraint.rb
│ ├── 20190102144032_change_reserved_domains_password_to_not_null.rb
│ ├── 20190209150026_drop_business_registry_caches.rb
│ ├── 20190302091059_restore_versions.rb
│ ├── 20190302111152_add_object_changes_to_versions.rb
│ ├── 20190311111718_remove_invoices_paid_at.rb
│ ├── 20190312211614_remove_invoices_payment_term.rb
│ ├── 20190315172802_change_invoices_issue_date_to_not_null.rb
│ ├── 20190319133036_remove_domains_reserved.rb
│ ├── 20190322152123_change_domains_force_delete_at_to_date.rb
│ ├── 20190322152529_rename_domains_force_delete_at_to_force_delete_date.rb
│ ├── 20190328151516_change_domains_delete_at_to_date.rb
│ ├── 20190328151838_rename_domains_delete_at_to_delete_date.rb
│ ├── 20190415120246_remove_unused_columns_from_log_domains.rb
│ ├── 20190426174225_add_registrars_settings.rb
│ ├── 20190506100655_remove_mail_templates.rb
│ ├── 20190510090240_prefix_registrars_address_columns.rb
│ ├── 20190510102549_change_registrars_address_parts_to_not_null.rb
│ ├── 20190515113153_add_registrars_iban.rb
│ ├── 20190516161439_change_invoices_vat_rate_to_not_null.rb
│ ├── 20190520093231_change_registrars_address_state_and_zip_to_null.rb
│ ├── 20190617120112_remove_depricated_versions.rb
│ ├── 20190617121716_remove_dnskeys_delegation_signer_id.rb
│ ├── 20190617121949_remove_delegation_signers.rb
│ ├── 20190617122505_remove_banklink_transactions.rb
│ ├── 20190620084334_create_log_actions.rb
│ ├── 20190811184334_remove_invoices_seller_id.rb
│ ├── 20190811195814_change_invoices_number_to_not_null.rb
│ ├── 20190811202042_add_invoices_number_uniq_constraint.rb
│ ├── 20190811202347_add_invoices_buyer_id_fk.rb
│ ├── 20190811202711_change_invoices_required_columns_to_not_null.rb
│ ├── 20190811205406_change_invoices_required_columns_to_not_null_part2.rb
│ ├── 20190917114907_drop_keyrelays.rb
│ ├── 20191004095229_change_reserved_domains_name_to_not_null.rb
│ ├── 20191004103144_add_reserved_domains_name_uniq_constraint.rb
│ ├── 20191004105643_change_blocked_domains_name_to_not_null.rb
│ ├── 20191004105732_add_blocked_domains_name_uniq_constraint.rb
│ ├── 20191004110234_remove_blocked_domains_name_index.rb
│ ├── 20191004154844_add_constraints.rb
│ ├── 20191005162437_add_constraints_part_ii.rb
│ ├── 20191007123000_add_constraints_part_iii.rb
│ ├── 20191008024334_remove_csr_crt_from_users.rb
│ ├── 20191024153351_add_invoice_items_quantity_constraint.rb
│ ├── 20191024160038_add_invoices_due_date_constraint.rb
│ ├── 20191203083643_add_force_delete_start_to_domains.rb
│ ├── 20191206183853_remove_registrant_verifications_domain_name.rb
│ ├── 20191212133136_remove_fill_ident_country_function.rb
│ ├── 20191217013225_remove_domains_registered_at.rb
│ ├── 20191219112434_change_legal_documents_path_to_not_null.rb
│ ├── 20191219124429_change_legal_documents_document_type_to_not_null.rb
│ ├── 20191227110904_add_json_based_version_to_registrant_verifications.rb
│ ├── 20200113091254_add_uuid_to_log_registrant_verification.rb
│ ├── 20200115102202_add_force_delete_data_to_domains.rb
│ ├── 20200130092113_create_payment_orders.rb
│ ├── 20200203143458_create_payment_order_versions.rb
│ ├── 20200204103125_add_e_invoice_sent_at_to_invoice.rb
│ ├── 20200311114649_update_zone_generation_migration.rb
│ ├── 20200417075720_add_registration_deadline_date_to_models.rb
│ ├── 20200421093637_create_disputes.rb
│ ├── 20200505103316_add_revoked_to_certificate.rb
│ ├── 20200505150413_add_dispute_period_in_months_to_setting.rb
│ ├── 20200518104105_add_closed_date_time_and_updator_to_dispute.rb
│ ├── 20200529115011_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.active_storage.rb
│ ├── 20200605100827_create_email_address_verifications.rb
│ ├── 20200605125332_create_csync_records.rb
│ ├── 20200610090110_change_email_verification_fields_to_citext.rb
│ ├── 20200630081231_add_legal_doc_optout_to_registrar.rb
│ ├── 20200714115338_add_unique_constraints_to_domain_objects.rb
│ ├── 20200807110611_change_registrant_verification_creator_updator_id_to_string.rb
│ ├── 20200811074839_create_setting_entries.rb
│ ├── 20200812090409_change_setting_entry_value_to_allow_nil.rb
│ ├── 20200812125810_create_versions_for_setting_entries.rb
│ ├── 20200902131603_change_log_domains_children_type_to_jsonb.rb
│ ├── 20200908131554_remove_import_file_path_from_bank_statements.rb
│ ├── 20200910085157_change_invoice_item_price_scale_to_three_places.rb
│ ├── 20200910102028_create_version_for_prices.rb
│ ├── 20200914073130_add_message_id_to_contact_request.rb
│ ├── 20200916125326_create_bounced_mail_addresses.rb
│ ├── 20210215101019_add_new_balance_to_account_activity.rb
│ ├── 20210616112332_create_business_registry_contacts.rb
│ ├── 20210629074044_create_validation_events.rb
│ ├── 20210708131814_add_json_statuses_history_field_to_domain.rb
│ ├── 20210729131100_add_field_to_user.rb
│ ├── 20210729134625_add_column_to_user.rb
│ ├── 20211124071418_create_pghero_query_stats.rb
│ ├── 20211125181033_add_type_index_to_validation_event.rb
│ ├── 20211125184334_add_conc_index_to_contact.rb
│ ├── 20211126085139_add_index_to_json_validation_event.rb
│ ├── 20211231113934_add_validation_datetime_to_dnskey.rb
│ ├── 20220106123143_add_validation_fields_to_nameserver.rb
│ ├── 20220113201642_add_email_history_to_contacts.rb
│ ├── 20220113220809_add_email_history_to_registrars.rb
│ ├── 20220124105717_add_payment_link_to_invoice.rb
│ ├── 20220228093211_add_failed_validation_reasong_to_dnskey.rb
│ ├── 20220316140727_add_bulk_actions.rb
│ ├── 20220406085500_remove_que_jobs.rb
│ ├── 20220412130856_add_type_to_auction.rb
│ ├── 20220413073315_remove_email_address_verifications.rb
│ ├── 20220413084536_remove_email_addresses_validations.rb
│ ├── 20220413084748_remove_email_addresses_verifications.rb
│ ├── 20220504090512_remove_contact_code_cache_from_domain_contacts.rb
│ ├── 20220524130709_remove_statuses_before_force_delete_from_domains.rb
│ ├── 20220701113409_change_notification_text_type_to_text.rb
│ ├── 20220715145808_add_registrant_publishable_to_contacts.rb
│ ├── 20220818075833_add_monthly_invoice_type_columns.rb
│ ├── 20221011061840_add_sent_at_to_invoices.rb
│ ├── 20221206090120_modify_log_domains_object_changes_data_type.rb
│ ├── 20221206091556_add_indexes_to_log_domains.rb
│ ├── 20221214073933_modify_log_domains_object_data_type.rb
│ ├── 20221214074252_add_index_to_log_domain_object.rb
│ ├── 20230531111154_add_ip_whitelist_max_count_setting.rb
│ ├── 20230707084741_add_committed_to_white_ips.rb
│ ├── 20230710120154_add_checked_company_at_to_contacts.rb
│ ├── 20230711083811_add_company_register_status_to_contacts.rb
│ ├── 20240816091049_change_request_object_type_in_epp_logs.rb
│ ├── 20240816092636_change_data_type_in_contacts.rb
│ ├── 20240924103554_add_verification_fields_to_contacts.rb
│ ├── 20241015071505_add_verification_id_to_contacts.rb
│ ├── 20250204094550_add_admin_contacts_rules_to_settings.rb
│ ├── 20250219102811_add_p12_fields_to_certificates.rb
│ ├── 20250313122119_add_serial_and_revoke_states_to_certificates.rb
│ └── 20250319104749_change_p12_password_digest_to_p12_password_in_certificates.rb
├── seeds.rb
├── structure.sql
└── whois_schema.rb
├── doc
├── api
│ └── v1
│ │ └── auctions.md
├── application_build_doc.md
├── certificates.md
├── debian_build_doc.md
├── epp
│ ├── README.md
│ ├── contact.md
│ ├── domain.md
│ └── session.md
├── epp_examples.md
├── registrant-api
│ └── v1
│ │ ├── authentication.md
│ │ ├── companies.md
│ │ ├── contact.md
│ │ ├── domain.md
│ │ └── registry_lock.md
├── registrant_api.md
├── repp_doc.md
├── ssl.md
├── testing.md
└── whois.rm
├── lib
├── application_service.rb
├── auth_token
│ ├── auth_token_creator.rb
│ └── auth_token_decryptor.rb
├── core_monkey_patches
│ ├── array.rb
│ └── hash.rb
├── deserializers
│ └── xml
│ │ ├── contact.rb
│ │ ├── contact_create.rb
│ │ ├── contact_update.rb
│ │ ├── dnssec.rb
│ │ ├── domain.rb
│ │ ├── domain_create.rb
│ │ ├── domain_delete.rb
│ │ ├── domain_update.rb
│ │ ├── ident.rb
│ │ ├── legal_document.rb
│ │ └── nameserver.rb
├── epp_constraint.rb
├── gem_monkey_patches
│ ├── builder.rb
│ ├── i18n.rb
│ ├── paper_trail.rb
│ └── ransack.rb
├── rake_option_parser_boilerplate.rb
├── schemas
│ ├── all-ee-1.0.xsd
│ ├── all-ee-1.1.xsd
│ ├── all-ee-1.2.xsd
│ ├── all-ee-1.3.xsd
│ ├── ariport.wsdl
│ ├── changePoll-1.0.xsd
│ ├── contact-1.0.xsd
│ ├── contact-ee-1.1.xsd
│ ├── contact-eis-1.0.xsd
│ ├── domain-1.0.xsd
│ ├── domain-ee-1.1.xsd
│ ├── domain-ee-1.2.xsd
│ ├── domain-eis-1.0.xsd
│ ├── eis-1.0.xsd
│ ├── epp-1.0.xsd
│ ├── epp-ee-1.0.xsd
│ ├── eppcom-1.0.xsd
│ ├── host-1.0.xsd
│ └── secDNS-1.1.xsd
├── serializers
│ ├── registrant_api
│ │ ├── .DS_Store
│ │ ├── company.rb
│ │ ├── contact.rb
│ │ └── domain.rb
│ └── repp
│ │ ├── api_user.rb
│ │ ├── certificate.rb
│ │ ├── contact.rb
│ │ ├── domain.rb
│ │ └── invoice.rb
├── tasks
│ ├── api_log.rake
│ ├── assing_auction_platform_type.rake
│ ├── bootstrap.rake
│ ├── check_closed_disputes.rake
│ ├── check_force_delete.rake
│ ├── collect_invalid_validation_business_contacts.rake
│ ├── collect_invalid_validation_contacts.rake
│ ├── company_status.rake
│ ├── contacts
│ │ └── archive.rake
│ ├── data_migrations
│ │ └── .keep
│ ├── db.rake
│ ├── dev
│ │ └── create_bank_transactions
│ │ │ ├── bank_transactions.xml
│ │ │ └── create_bank_transactions.rake
│ ├── documents.rake
│ ├── domains
│ │ └── release.rake
│ ├── eis_billing_import_data.rake
│ ├── email_bounce_test.rake
│ ├── epp
│ │ └── clear_expired_sessions.rake
│ ├── invoices
│ │ ├── cancel_overdue.rake
│ │ └── process_payments.rake
│ ├── legal_doc.rake
│ ├── outzone_invalid_email_domains.rake
│ ├── registrars
│ │ └── reload_balance.rake
│ ├── replace_upd_to_obj_upd_prohibited.rake
│ ├── scan_csv_registry_business_contacts.rake
│ ├── verify_domain.rake
│ ├── verify_email.rake
│ └── whois.rake
├── validators
│ ├── e164_validator.rb
│ ├── iso31661_alpha2_validator.rb
│ ├── iso8601_validator.rb
│ └── phone_validator.rb
└── xsd
│ └── schema.rb
├── public
├── 404.html
├── 422.html
├── 500.html
├── eis-logo-black-et.png
├── favicon.ico
└── robots.txt
├── renovate.json
├── test
├── application_system_test_case.rb
├── fixtures
│ ├── account_activities.yml
│ ├── accounts.yml
│ ├── actions.yml
│ ├── auctions.yml
│ ├── bank_statements.yml
│ ├── bank_transactions.yml
│ ├── billing
│ │ └── prices.yml
│ ├── blocked_domains.yml
│ ├── bounced_mail_addresses.yml
│ ├── certificates.yml
│ ├── contact_requests.yml
│ ├── contacts.yml
│ ├── disputes.yml
│ ├── dns
│ │ └── zones.yml
│ ├── dnskeys.yml
│ ├── domain_contacts.yml
│ ├── domain_transfers.yml
│ ├── domains.yml
│ ├── epp_sessions.yml
│ ├── files
│ │ ├── accounts.csv
│ │ ├── api_users.csv
│ │ ├── auction_domains_list.csv
│ │ ├── auction_domains_list_with_invalid_item.csv
│ │ ├── bank_statement_test.txt
│ │ ├── cdns_output.txt
│ │ ├── contact_versions.csv
│ │ ├── contacts.csv
│ │ ├── domain_versions.csv
│ │ ├── domains.csv
│ │ ├── ette.csv
│ │ ├── invalid_domains_for_ns_replacement.csv
│ │ ├── invoices.csv
│ │ ├── keystore.p12
│ │ ├── legaldoc.pdf
│ │ ├── mass_actions
│ │ │ ├── invalid_mass_force_delete_list.csv
│ │ │ └── valid_mass_force_delete_list.csv
│ │ ├── schemas
│ │ │ ├── abcde-1.1.xsd
│ │ │ ├── abcde-1.2.xsd
│ │ │ ├── abcde-fghij-1.1.xsd
│ │ │ ├── abcde-fghij-1.2.xsd
│ │ │ └── abcde-fghij-1.3.xsd
│ │ ├── seb_bank_cert.pem
│ │ ├── seb_seller_key.pem
│ │ ├── test_ca
│ │ │ ├── certs
│ │ │ │ ├── ca.crt.pem
│ │ │ │ └── ca.srl
│ │ │ ├── crl
│ │ │ │ └── crl.pem
│ │ │ ├── crlnumber
│ │ │ ├── generate_certificates.sh
│ │ │ ├── index.txt
│ │ │ ├── openssl.cnf
│ │ │ ├── prepare_root_ca.sh
│ │ │ ├── private
│ │ │ │ └── ca.key.pem
│ │ │ ├── serial
│ │ │ ├── server.csr
│ │ │ ├── server.csr.cnf
│ │ │ └── v3.ext
│ │ ├── user.crt
│ │ ├── valid_domains_for_ns_replacement.csv
│ │ ├── valid_domains_for_transfer.csv
│ │ ├── webclient
│ │ │ ├── webclient.crt.pem
│ │ │ └── webclient.key.pem
│ │ └── white_ips.csv
│ ├── invoice_items.yml
│ ├── invoices.yml
│ ├── legal_documents.yml
│ ├── log_contacts.yml
│ ├── log_domains.yml
│ ├── nameservers.yml
│ ├── notifications.yml
│ ├── payment_orders.yml
│ ├── registrant_verifications.yml
│ ├── registrars.yml
│ ├── reserved_domains.yml
│ ├── setting_entries.yml
│ ├── users.yml
│ ├── white_ips.yml
│ ├── whois
│ │ └── records.yml
│ └── whois_records.yml
├── helpers
│ ├── application_helper_test.rb
│ ├── form_helper_test.rb
│ ├── form_tag_helper_test.rb
│ └── phone_format_helper_test.rb
├── integration
│ ├── admin_area
│ │ ├── account_activities_test.rb
│ │ ├── admin_users_test.rb
│ │ ├── api_users_test.rb
│ │ ├── auction_test.rb
│ │ ├── blocked_domains_test.rb
│ │ ├── certificates_test.rb
│ │ ├── disputes_test.rb
│ │ ├── domain_show_test.rb
│ │ ├── domain_update_confirms_test.rb
│ │ ├── epp_logs_test.rb
│ │ ├── invoices_test.rb
│ │ ├── pending_delete_test.rb
│ │ ├── pending_update_test.rb
│ │ ├── registrars_test.rb
│ │ ├── repp_logs_test.rb
│ │ ├── reserved_domains_test.rb
│ │ ├── white_ips_test.rb
│ │ └── zones_test.rb
│ ├── api
│ │ ├── accreditation_center
│ │ │ ├── auth_test.rb
│ │ │ ├── contacts_test.rb
│ │ │ ├── domains_test.rb
│ │ │ └── invoice_status_test.rb
│ │ ├── domain_admin_contacts_test.rb
│ │ ├── domain_contacts_test.rb
│ │ ├── domain_transfers_test.rb
│ │ ├── nameservers
│ │ │ └── put_test.rb
│ │ ├── registrant
│ │ │ ├── registrant_api_authentication_test.rb
│ │ │ ├── registrant_api_companies_test.rb
│ │ │ ├── registrant_api_contacts_test.rb
│ │ │ ├── registrant_api_cors_headers_test.rb
│ │ │ ├── registrant_api_domains_test.rb
│ │ │ ├── registrant_api_registry_locks_test.rb
│ │ │ └── registrant_api_verifications_test.rb
│ │ └── v1
│ │ │ ├── auctions
│ │ │ ├── details_test.rb
│ │ │ ├── list_test.rb
│ │ │ └── update_test.rb
│ │ │ ├── bounces
│ │ │ └── create_test.rb
│ │ │ ├── contact_requests_test.rb
│ │ │ └── registrant
│ │ │ ├── contacts
│ │ │ ├── details_test.rb
│ │ │ ├── list_test.rb
│ │ │ └── update_test.rb
│ │ │ └── domains_test.rb
│ ├── certificate_creation_test.rb
│ ├── contact
│ │ └── audit_log_test.rb
│ ├── domain
│ │ └── audit_log_test.rb
│ ├── eeid
│ │ └── identification_requests_webhook_test.rb
│ ├── eis_billing
│ │ ├── directo_response_test.rb
│ │ ├── e_invoice_response_test.rb
│ │ ├── invoices_test.rb
│ │ ├── lhv_connect_transactions_test.rb
│ │ └── payment_status_test.rb
│ ├── epp
│ │ ├── base_test.rb
│ │ ├── contact
│ │ │ ├── base_test.rb
│ │ │ ├── check
│ │ │ │ └── base_test.rb
│ │ │ ├── create
│ │ │ │ └── base_test.rb
│ │ │ ├── delete
│ │ │ │ └── base_test.rb
│ │ │ ├── info
│ │ │ │ └── base_test.rb
│ │ │ ├── transfer
│ │ │ │ └── base_test.rb
│ │ │ └── update
│ │ │ │ └── base_test.rb
│ │ ├── domain
│ │ │ ├── base_test.rb
│ │ │ ├── check
│ │ │ │ ├── auction_test.rb
│ │ │ │ └── base_test.rb
│ │ │ ├── create
│ │ │ │ ├── auction_idn_test.rb
│ │ │ │ ├── auction_test.rb
│ │ │ │ └── base_test.rb
│ │ │ ├── delete
│ │ │ │ └── base_test.rb
│ │ │ ├── info
│ │ │ │ └── base_test.rb
│ │ │ ├── renew
│ │ │ │ └── base_test.rb
│ │ │ ├── transfer
│ │ │ │ ├── query_test.rb
│ │ │ │ └── request_test.rb
│ │ │ └── update
│ │ │ │ ├── base_test.rb
│ │ │ │ ├── rem_dns_test.rb
│ │ │ │ └── replace_dns_test.rb
│ │ ├── hello_test.rb
│ │ ├── login_test.rb
│ │ ├── logout_test.rb
│ │ └── poll_test.rb
│ └── repp
│ │ └── v1
│ │ ├── accounts
│ │ ├── activities_list_test.rb
│ │ ├── balance_test.rb
│ │ ├── details_test.rb
│ │ ├── switch_user_test.rb
│ │ ├── update_auto_reload_balance_test.rb
│ │ └── update_details_test.rb
│ │ ├── api_users
│ │ ├── create_test.rb
│ │ ├── delete_test.rb
│ │ ├── list_test.rb
│ │ ├── show_test.rb
│ │ └── update_test.rb
│ │ ├── auctions_test.rb
│ │ ├── base_test.rb
│ │ ├── certificates
│ │ ├── create_test.rb
│ │ ├── download_test.rb
│ │ └── show_test.rb
│ │ ├── contacts
│ │ ├── check_test.rb
│ │ ├── create_test.rb
│ │ ├── delete_test.rb
│ │ ├── download_poi_test.rb
│ │ ├── list_test.rb
│ │ ├── search_test.rb
│ │ ├── show_test.rb
│ │ ├── tech_replace_test.rb
│ │ ├── update_test.rb
│ │ └── verify_test.rb
│ │ ├── domains
│ │ ├── bulk_renew_test.rb
│ │ ├── contact_replacement_test.rb
│ │ ├── contacts_test.rb
│ │ ├── create_test.rb
│ │ ├── delete_test.rb
│ │ ├── dnssec_test.rb
│ │ ├── list_test.rb
│ │ ├── nameservers_test.rb
│ │ ├── renews_test.rb
│ │ ├── statuses_test.rb
│ │ ├── transfer_info_test.rb
│ │ ├── transfer_test.rb
│ │ └── update_test.rb
│ │ ├── invoices
│ │ ├── add_credit_test.rb
│ │ ├── cancel_test.rb
│ │ ├── download_test.rb
│ │ ├── list_test.rb
│ │ ├── send_test.rb
│ │ └── show_test.rb
│ │ ├── registrar
│ │ ├── accreditaion_info_test.rb
│ │ ├── accreditation_results_test.rb
│ │ ├── auth
│ │ │ ├── check_info_test.rb
│ │ │ └── tara_callback_test.rb
│ │ ├── nameservers_test.rb
│ │ ├── notifications_test.rb
│ │ ├── summary_test.rb
│ │ └── xml_console_test.rb
│ │ ├── retained_domains_test.rb
│ │ ├── stats
│ │ └── market_share_test.rb
│ │ └── white_ips
│ │ ├── create_test.rb
│ │ ├── delete_test.rb
│ │ ├── list_test.rb
│ │ ├── show_test.rb
│ │ └── update_test.rb
├── interactions
│ ├── do_request_test.rb
│ ├── domain_delete_interaction
│ │ └── domain_delete_test.rb
│ ├── domains
│ │ └── client_hold
│ │ │ └── process_client_hold_test.rb
│ ├── email_check_test.rb
│ ├── expire_period
│ │ ├── process_expired_test.rb
│ │ └── start_test.rb
│ ├── force_delete_email
│ │ └── base_test.rb
│ ├── record_date_of_test_test.rb
│ └── redemption_grace_period
│ │ └── start_test.rb
├── jobs
│ ├── active_job_queuing_test.rb
│ ├── company_register_status_job_test.rb
│ ├── csync_job_test.rb
│ ├── directo_invoice_forward_job_test.rb
│ ├── dispute_status_update_job_test.rb
│ ├── domain_delete_confirm_job_test.rb
│ ├── domain_delete_job_test.rb
│ ├── domain_expire_email_job_test.rb
│ ├── domain_update_confirm_job_test.rb
│ ├── force_delete_daily_admin_notifier_job_test.rb
│ ├── nameserver_record_validation_job_test.rb
│ ├── notify_accreditation_admins_and_registrars_job_test.rb
│ ├── org_registrant_phone_checker_job_test.rb
│ ├── outzone_invalid_email_domains_job_test.rb
│ ├── p12_generator_job_test.rb
│ ├── regenerate_subzone_whoises_job_test.rb
│ ├── registrant_change_confirm_email_job_test.rb
│ ├── registrant_change_expired_email_job_test.rb
│ ├── registrant_change_notice_email_job_test.rb
│ ├── replace_upd_to_obj_upd_prohibited_job_test.rb
│ ├── scan_csv_registry_businnes_contacts_job_test.rb
│ ├── send_e_invoice_legacy_job_test.rb
│ ├── send_monthly_invoices_job_test.rb
│ ├── update_whois_record_job_test.rb
│ ├── validate_dnssec_job_test.rb
│ └── verify_emails_job_test.rb
├── learning
│ ├── countries_test.rb
│ ├── money_test.rb
│ └── paper_trail_test.rb
├── lib
│ ├── auth_token
│ │ ├── auth_token_creator_test.rb
│ │ └── auth_token_decryptor_test.rb
│ ├── ca_crl_test.rb
│ ├── certificate_authority_test.rb
│ ├── deserializers
│ │ └── xml
│ │ │ ├── contact_test.rb
│ │ │ ├── ident_test.rb
│ │ │ └── legal_document_test.rb
│ ├── retryable_test.rb
│ ├── serializers
│ │ ├── registrant_api
│ │ │ ├── contact_test.rb
│ │ │ └── domain_test.rb
│ │ └── repp
│ │ │ └── domain_test.rb
│ ├── shunter
│ │ └── shunter_base_test.rb
│ ├── validators
│ │ ├── date_time_iso8601_validator_test.rb
│ │ └── duration_iso8601_validator_test.rb
│ └── xsd_schema
│ │ └── xsd_schema_test.rb
├── mailers
│ ├── accrediation_center_mailer_test.rb
│ ├── application_mailer_test.rb
│ ├── contact_inform_mailer_test.rb
│ ├── contact_mailer_test.rb
│ ├── domain_delete_mailer_test.rb
│ ├── domain_expire_mailer_test.rb
│ ├── invoice_mailer_test.rb
│ ├── previews
│ │ ├── contact_mailer_preview.rb
│ │ ├── domain_delete_mailer_preview.rb
│ │ ├── domain_expire_mailer_preview.rb
│ │ ├── invoice_mailer_preview.rb
│ │ └── registrant_change_mailer_preview.rb
│ └── registrant_change_mailer_test.rb
├── models
│ ├── account_activity_test.rb
│ ├── action_test.rb
│ ├── admin_user_test.rb
│ ├── api_user_test.rb
│ ├── auction_test.rb
│ ├── balance_auto_reload_types
│ │ └── threshold_test.rb
│ ├── bank_statement_test.rb
│ ├── bank_transaction_test.rb
│ ├── billing
│ │ ├── price_test.rb
│ │ ├── reference_no
│ │ │ └── base_test.rb
│ │ └── reference_no_test.rb
│ ├── bounced_mail_address_test.rb
│ ├── certificate_crl_test.rb
│ ├── certificate_test.rb
│ ├── concerns
│ │ └── versions_test.rb
│ ├── contact
│ │ ├── address_test.rb
│ │ ├── archivable_test.rb
│ │ ├── company_register_test.rb
│ │ ├── ident_test.rb
│ │ ├── identical_test.rb
│ │ ├── postal_address_test.rb
│ │ └── transfer_test.rb
│ ├── contact_test.rb
│ ├── csync_record_test.rb
│ ├── deposit_test.rb
│ ├── directo_test.rb
│ ├── disputed_domain_test.rb
│ ├── dns
│ │ ├── domain_name_test.rb
│ │ └── zone_test.rb
│ ├── dnskey_test.rb
│ ├── domain
│ │ ├── domain_version_test.rb
│ │ ├── force_delete_test.rb
│ │ ├── registry_lockable_test.rb
│ │ ├── releasable
│ │ │ ├── auctionable_test.rb
│ │ │ └── discardable_test.rb
│ │ ├── releasable_test.rb
│ │ └── transferable_test.rb
│ ├── domain_contact_test.rb
│ ├── domain_cron_test.rb
│ ├── domain_test.rb
│ ├── domain_transfer_test.rb
│ ├── epp
│ │ ├── response
│ │ │ ├── result
│ │ │ │ └── code_test.rb
│ │ │ └── result_test.rb
│ │ └── response_test.rb
│ ├── epp_session_test.rb
│ ├── feature_test.rb
│ ├── iban_test.rb
│ ├── inactive_contacts_test.rb
│ ├── invoice
│ │ ├── cancellable_test.rb
│ │ ├── payable_test.rb
│ │ └── vat_rate_calculator_test.rb
│ ├── invoice_item_test.rb
│ ├── invoice_state_machinte_test.rb
│ ├── invoice_test.rb
│ ├── legal_document_test.rb
│ ├── mass_action_test.rb
│ ├── nameserver
│ │ └── glue_record_test.rb
│ ├── nameserver_test.rb
│ ├── notification_test.rb
│ ├── payment_orders
│ │ ├── bank_link_test.rb
│ │ └── every_pay_test.rb
│ ├── payment_orders_test.rb
│ ├── registrant_user
│ │ └── registrant_user_creation_test.rb
│ ├── registrant_user_test.rb
│ ├── registrant_verification_test.rb
│ ├── registrar
│ │ ├── code_test.rb
│ │ ├── delete_test.rb
│ │ └── replace_nameservers_test.rb
│ ├── registrar_test.rb
│ ├── registry_test.rb
│ ├── reserved_domain_test.rb
│ ├── setting_entry_test.rb
│ ├── validation_event_test.rb
│ ├── version
│ │ └── domain_version_test.rb
│ ├── white_ip_test.rb
│ ├── whois
│ │ └── record_test.rb
│ └── whois_record_test.rb
├── services
│ ├── certificates
│ │ ├── certificate_generator_test.rb
│ │ └── p12_generation_test.rb
│ ├── contact_notification_test.rb
│ ├── identification_service_test.rb
│ ├── overdue_invoice_canceller_test.rb
│ └── send_data_to_directo_test.rb
├── support
│ └── assertions
│ │ └── epp_assertions.rb
├── system
│ └── admin_area
│ │ ├── accounts_test.rb
│ │ ├── api_users_test.rb
│ │ ├── bank_statement_test.rb
│ │ ├── bounced_mail_addresses_test.rb
│ │ ├── contact_versions_test.rb
│ │ ├── contacts
│ │ └── csv_test.rb
│ │ ├── contacts_test.rb
│ │ ├── domain_versions_test.rb
│ │ ├── domains
│ │ ├── csv_test.rb
│ │ ├── details_test.rb
│ │ ├── force_delete_test.rb
│ │ ├── legal_doc_test.rb
│ │ └── registry_lock_test.rb
│ │ ├── domains_test.rb
│ │ ├── invoices_test.rb
│ │ ├── mass_actions
│ │ └── mass_force_delete_test.rb
│ │ ├── prices_test.rb
│ │ ├── protected_area_test.rb
│ │ ├── registrars
│ │ ├── api_users_test.rb
│ │ └── white_ips_test.rb
│ │ ├── registrars_test.rb
│ │ ├── reserved_domains
│ │ └── new_test.rb
│ │ ├── settings_test.rb
│ │ ├── sign_in_test.rb
│ │ ├── sign_out_test.rb
│ │ └── zones_test.rb
├── tasks
│ ├── assign_auction_platform_type_test.rb
│ ├── check_force_delete_test.rb
│ ├── company_status_task_test.rb
│ ├── contacts
│ │ └── archive_test.rb
│ ├── domains
│ │ └── release_test.rb
│ ├── emails
│ │ └── verify_email_task_test.rb
│ ├── epp
│ │ └── clear_expired_sessions_test.rb
│ ├── invoices
│ │ ├── cancel_overdue_test.rb
│ │ └── process_payments_test.rb
│ └── registrars
│ │ └── reload_balance_test.rb
└── test_helper.rb
└── vendor
└── assets
├── fonts
├── etelkalight-webfont.eot
├── etelkalight-webfont.svg
├── etelkalight-webfont.ttf
├── etelkalight-webfont.woff
├── etelkalightbold-webfont.eot
├── etelkalightbold-webfont.svg
├── etelkalightbold-webfont.ttf
├── etelkalightbold-webfont.woff
├── etelkalightitalic-webfont.eot
├── etelkalightitalic-webfont.svg
├── etelkalightitalic-webfont.ttf
├── etelkalightitalic-webfont.woff
├── infotexb-webfont.eot
├── infotexb-webfont.svg
├── infotexb-webfont.ttf
├── infotexb-webfont.woff
├── infotexm-webfont.eot
├── infotexm-webfont.svg
├── infotexm-webfont.ttf
└── infotexm-webfont.woff
├── javascripts
├── jquery.doubleScroll.js
├── jquery.nested_attributes.coffee
└── typeahead.bundle.min.js
└── stylesheets
├── .keep
└── typeaheadjs.css
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_style = space
7 | indent_size = 2
8 | max_line_length = 100
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.{html,erb,js}]
13 | indent_size = 4
--------------------------------------------------------------------------------
/.ruby-gemset:
--------------------------------------------------------------------------------
1 | -global
--------------------------------------------------------------------------------
/.ruby-version:
--------------------------------------------------------------------------------
1 | 3.0.3
2 |
--------------------------------------------------------------------------------
/Dockerfile.gems:
--------------------------------------------------------------------------------
1 | FROM internetee/ruby_base:3.0
2 | LABEL org.opencontainers.image.source=https://github.com/internetee/registry
3 |
4 | COPY Gemfile Gemfile.lock ./
5 | RUN gem install bundler && bundle config set without 'development test' && bundle install --jobs 20 --retry 5
6 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | # Add your own tasks in files placed in lib/tasks ending in .rake,
2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 |
4 | require_relative 'config/application'
5 |
6 | Rails.application.load_tasks
7 |
--------------------------------------------------------------------------------
/app/assets/config/manifest.js:
--------------------------------------------------------------------------------
1 | //= link_tree ../images
2 | //= link_directory ../javascripts .js
3 | //= link_directory ../stylesheets .css
4 |
--------------------------------------------------------------------------------
/app/assets/images/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/.keep
--------------------------------------------------------------------------------
/app/assets/images/alpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/alpha.png
--------------------------------------------------------------------------------
/app/assets/images/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/bg.jpg
--------------------------------------------------------------------------------
/app/assets/images/danske.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/danske.png
--------------------------------------------------------------------------------
/app/assets/images/development.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/development.png
--------------------------------------------------------------------------------
/app/assets/images/eis-logo-et.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/eis-logo-et.png
--------------------------------------------------------------------------------
/app/assets/images/every_pay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/every_pay.png
--------------------------------------------------------------------------------
/app/assets/images/everypay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/everypay.png
--------------------------------------------------------------------------------
/app/assets/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/favicon.ico
--------------------------------------------------------------------------------
/app/assets/images/id_card.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/id_card.gif
--------------------------------------------------------------------------------
/app/assets/images/lhv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/lhv.png
--------------------------------------------------------------------------------
/app/assets/images/mid.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/mid.gif
--------------------------------------------------------------------------------
/app/assets/images/nordea.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/nordea.png
--------------------------------------------------------------------------------
/app/assets/images/registrar/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/registrar/.keep
--------------------------------------------------------------------------------
/app/assets/images/registrar/bg-development.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/registrar/bg-development.png
--------------------------------------------------------------------------------
/app/assets/images/registrar/bg-staging.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/registrar/bg-staging.png
--------------------------------------------------------------------------------
/app/assets/images/registrar/bg-test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/registrar/bg-test.png
--------------------------------------------------------------------------------
/app/assets/images/registrar/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/registrar/favicon.ico
--------------------------------------------------------------------------------
/app/assets/images/seb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/seb.png
--------------------------------------------------------------------------------
/app/assets/images/staging.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/staging.png
--------------------------------------------------------------------------------
/app/assets/images/swed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/swed.png
--------------------------------------------------------------------------------
/app/assets/images/test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/assets/images/test.png
--------------------------------------------------------------------------------
/app/assets/javascripts/admin/app.js:
--------------------------------------------------------------------------------
1 | var RegistryAdmin = {};
2 |
--------------------------------------------------------------------------------
/app/assets/javascripts/admin/combobox.js:
--------------------------------------------------------------------------------
1 | var comboBoxFields = $('.js-combobox');
2 |
3 | if (comboBoxFields.length) {
4 | comboBoxFields.select2({
5 | width: "100%",
6 | selectOnBlur: true,
7 | dropdownAutoWidth: self === top
8 | });
9 | }
10 |
--------------------------------------------------------------------------------
/app/assets/javascripts/popover.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | function initPopover() {
3 | $(function () {
4 | $('[data-toggle="popover"]').popover();
5 | })
6 | }
7 |
8 | initPopover();
9 | })();
10 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/admin/bootstrap-dialog-fix.css:
--------------------------------------------------------------------------------
1 | .modal-open {
2 | overflow: visible;
3 | }
4 |
5 | .modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom {
6 | padding-right: 0px !important;
7 | }
8 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/forms.scss:
--------------------------------------------------------------------------------
1 | input[type=number]::-webkit-inner-spin-button {
2 | display: none;
3 | }
4 |
5 | input[type=number] {
6 | -moz-appearance: textfield;
7 | }
8 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/shared/pdf.sass:
--------------------------------------------------------------------------------
1 | @import "bootstrap-sprockets"
2 | @import "bootstrap"
3 |
4 | #logo
5 | text-align: right
6 |
7 | .no-border
8 | border: 0px !important
9 |
10 | body, html, .container
11 | height: 100%
12 |
13 | #footer
14 | position: absolute
15 | bottom: 0
16 | width: 100%
17 |
--------------------------------------------------------------------------------
/app/controllers/admin/dashboard_controller.rb:
--------------------------------------------------------------------------------
1 | module Admin
2 | class DashboardController < BaseController
3 | authorize_resource class: false
4 |
5 | def show; end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/app/controllers/admin/delayed_jobs_controller.rb:
--------------------------------------------------------------------------------
1 | module Admin
2 | class DelayedJobsController < BaseController
3 | authorize_resource class: false
4 |
5 | def index
6 | @jobs = Delayed::Job.all
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/controllers/admin/invoices/delivery_controller.rb:
--------------------------------------------------------------------------------
1 | module Admin
2 | module Invoices
3 | class DeliveryController < BaseController
4 | include Deliverable
5 |
6 | private
7 |
8 | def redirect_url
9 | admin_invoice_path(@invoice)
10 | end
11 | end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/app/helpers/form_tag_helper.rb:
--------------------------------------------------------------------------------
1 | module FormTagHelper
2 | def legal_document_field_tag(name, options = {})
3 | options[:data] = { legal_document: true }
4 | options[:accept] = legal_document_types unless options[:accept]
5 |
6 | file_field_tag(name, options)
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/app/interactions/domains/cancel_force_delete/base.rb:
--------------------------------------------------------------------------------
1 | module Domains
2 | module CancelForceDelete
3 | class Base < ActiveInteraction::Base
4 | object :domain,
5 | class: Domain,
6 | description: 'Domain to cancel ForceDelete on'
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/interactions/domains/client_hold/base.rb:
--------------------------------------------------------------------------------
1 | module Domains
2 | module ClientHold
3 | class Base < ActiveInteraction::Base
4 | def to_stdout(message)
5 | time = Time.zone.now.utc
6 | $stdout << "#{time} - #{message}\n" unless Rails.env.test?
7 | end
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/app/interactions/domains/delete/base.rb:
--------------------------------------------------------------------------------
1 | module Domains
2 | module Delete
3 | class Base < ActiveInteraction::Base
4 | object :domain,
5 | class: Domain,
6 | description: 'Domain to delete'
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/interactions/domains/expired_pendings/base.rb:
--------------------------------------------------------------------------------
1 | module Domains
2 | module ExpiredPendings
3 | class Base < ActiveInteraction::Base
4 | def to_stdout(message)
5 | time = Time.zone.now.utc
6 | $stdout << "#{time} - #{message}\n" unless Rails.env.test?
7 | end
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/app/interactions/domains/redemption_grace_period/base.rb:
--------------------------------------------------------------------------------
1 | module Domains
2 | module RedemptionGracePeriod
3 | class Base < ActiveInteraction::Base
4 | def to_stdout(message)
5 | time = Time.zone.now.utc
6 | $stdout << "#{time} - #{message}\n" unless Rails.env.test?
7 | end
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/app/jobs/application_job.rb:
--------------------------------------------------------------------------------
1 | class ApplicationJob < ActiveJob::Base
2 | discard_on NoMethodError
3 | queue_as :default
4 | end
5 |
--------------------------------------------------------------------------------
/app/jobs/domain_delete_job.rb:
--------------------------------------------------------------------------------
1 | class DomainDeleteJob < ApplicationJob
2 | def perform(domain_id)
3 | domain = Domain.find(domain_id)
4 |
5 | Domains::Delete::DoDelete.run(domain: domain)
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/app/jobs/regenerate_subzone_whoises_job.rb:
--------------------------------------------------------------------------------
1 | class RegenerateSubzoneWhoisesJob < ApplicationJob
2 | def perform
3 | subzones = DNS::Zone.all
4 |
5 | subzones.each do |zone|
6 | next unless zone.subzone?
7 |
8 | UpdateWhoisRecordJob.perform_later zone.origin, 'zone'
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/app/jobs/update_whois_record_job.rb:
--------------------------------------------------------------------------------
1 | class UpdateWhoisRecordJob < ApplicationJob
2 | def perform(names, type)
3 | Whois::Update.run(names: [names].flatten, type: type)
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/app/lib/to_stdout.rb:
--------------------------------------------------------------------------------
1 | class ToStdout
2 | def self.msg(message)
3 | time = Time.zone.now.utc
4 | $stdout << "#{time} - #{message}\n" unless Rails.env.test?
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/app/models/api_log/epp_log.rb:
--------------------------------------------------------------------------------
1 | module ApiLog
2 | class EppLog < Db; end
3 | end
4 |
--------------------------------------------------------------------------------
/app/models/api_log/repp_log.rb:
--------------------------------------------------------------------------------
1 | module ApiLog
2 | class ReppLog < Db; end
3 | end
4 |
--------------------------------------------------------------------------------
/app/models/application_record.rb:
--------------------------------------------------------------------------------
1 | class ApplicationRecord < ActiveRecord::Base
2 | self.abstract_class = true
3 | end
4 |
--------------------------------------------------------------------------------
/app/models/billing.rb:
--------------------------------------------------------------------------------
1 | module Billing
2 | def self.use_relative_model_naming?
3 | true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/business_registry_contact.rb:
--------------------------------------------------------------------------------
1 | class BusinessRegistryContact < ApplicationRecord
2 | end
3 |
--------------------------------------------------------------------------------
/app/models/certification_request.rb:
--------------------------------------------------------------------------------
1 | class CertificationRequest
2 | extend ActiveModel::Translation
3 | end
4 |
--------------------------------------------------------------------------------
/app/models/concerns/registrar/legal_doc.rb:
--------------------------------------------------------------------------------
1 | module Registrar::LegalDoc
2 | extend ActiveSupport::Concern
3 |
4 | def legaldoc_mandatory?
5 | !legaldoc_not_mandatory?
6 | end
7 |
8 | def legaldoc_not_mandatory?
9 | setting = Setting.legal_document_is_mandatory
10 | legaldoc_optout || !setting
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/app/models/concerns/remove_hold.rb:
--------------------------------------------------------------------------------
1 | module RemoveHold
2 | extend ActiveSupport::Concern
3 |
4 | def remove_hold(params)
5 | xml = epp_xml.update(name: { value: params[:domain_name] },
6 | rem: [status: { attrs: { s: 'clientHold' }, value: '' }])
7 | current_user.request(xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/models/concerns/version_session.rb:
--------------------------------------------------------------------------------
1 | module VersionSession
2 | extend ActiveSupport::Concern
3 |
4 | included do
5 | before_save :add_session
6 |
7 | def add_session
8 | self.session = ::PaperSession.session
9 | true
10 | end
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/app/models/contact_update_action.rb:
--------------------------------------------------------------------------------
1 | class ContactUpdateAction < Action; end
2 |
--------------------------------------------------------------------------------
/app/models/directo.rb:
--------------------------------------------------------------------------------
1 | class Directo < ApplicationRecord
2 | belongs_to :item, polymorphic: true
3 | end
4 |
--------------------------------------------------------------------------------
/app/models/dns.rb:
--------------------------------------------------------------------------------
1 | module DNS
2 | def self.use_relative_model_naming?
3 | true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/epp/expired_sessions.rb:
--------------------------------------------------------------------------------
1 | module Epp
2 | class ExpiredSessions
3 | attr_reader :sessions
4 |
5 | def initialize(sessions)
6 | @sessions = sessions
7 | end
8 |
9 | def clear
10 | sessions.find_each(&:destroy!)
11 | end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/app/models/epp/response/result.rb:
--------------------------------------------------------------------------------
1 | module Epp
2 | class Response
3 | class Result
4 | attr_reader :code
5 |
6 | def initialize(code:)
7 | @code = code
8 | end
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/app/models/iban.rb:
--------------------------------------------------------------------------------
1 | class Iban
2 | def self.max_length
3 | 34
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/payment_orders/admin_payment.rb:
--------------------------------------------------------------------------------
1 | module PaymentOrders
2 | class AdminPayment < PaymentOrder
3 | CONFIG_NAMESPACE = 'admin_payment'.freeze
4 |
5 | def self.config_namespace_name
6 | CONFIG_NAMESPACE
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/models/payment_orders/lhv.rb:
--------------------------------------------------------------------------------
1 | module PaymentOrders
2 | class Lhv < BankLink
3 | def self.config_namespace_name
4 | 'lhv'
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/app/models/payment_orders/seb.rb:
--------------------------------------------------------------------------------
1 | module PaymentOrders
2 | class Seb < BankLink
3 | def self.config_namespace_name
4 | 'seb'
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/app/models/payment_orders/swed.rb:
--------------------------------------------------------------------------------
1 | module PaymentOrders
2 | class Swed < BankLink
3 | def self.config_namespace_name
4 | 'swed'
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/app/models/payment_orders/system_payment.rb:
--------------------------------------------------------------------------------
1 | module PaymentOrders
2 | class SystemPayment < PaymentOrder
3 | CONFIG_NAMESPACE = 'system_payment'.freeze
4 |
5 | def self.config_namespace_name
6 | CONFIG_NAMESPACE
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/models/registrant.rb:
--------------------------------------------------------------------------------
1 | class Registrant < Contact
2 | # epp_code_map is used during epp domain create
3 | def epp_code_map
4 | {}
5 | end
6 |
7 | def publishable?
8 | registrant_publishable
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/app/models/registry.rb:
--------------------------------------------------------------------------------
1 | class Registry
2 | include ActiveModel::Model
3 |
4 | attr_accessor :vat_rate, :vat_country
5 |
6 | def self.current
7 | vat_rate = Setting.registry_vat_prc.to_d * 100
8 | vat_country = Country.new(Setting.registry_country_code)
9 |
10 | new(vat_rate: vat_rate, vat_country: vat_country)
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/app/models/setting.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | class Setting < SettingEntry
4 | # Bridge Setting calls to SettingEntry, so we don't have to drop legacy settings yet
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/type/vat_rate.rb:
--------------------------------------------------------------------------------
1 | module Type
2 | class VatRate < ActiveRecord::Type::Decimal
3 | def deserialize(value)
4 | super * 100 if value
5 | end
6 |
7 | def serialize(value)
8 | super / 100.0 if value
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/app/models/validation_event/event_type.rb:
--------------------------------------------------------------------------------
1 | class ValidationEvent
2 | class EventType
3 | TYPES = { email_validation: 'email_validation',
4 | manual_force_delete: 'manual_force_delete' }.freeze
5 |
6 | def initialize(event_type)
7 | @event_type = event_type
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/app/models/version.rb:
--------------------------------------------------------------------------------
1 | class Version; end
2 |
--------------------------------------------------------------------------------
/app/models/version/account_activity_version.rb:
--------------------------------------------------------------------------------
1 | class Version::AccountActivityVersion < PaperTrail::Version
2 | self.table_name = :log_account_activities
3 | self.sequence_name = :log_account_activities_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/account_version.rb:
--------------------------------------------------------------------------------
1 | class Version::AccountVersion < PaperTrail::Version
2 | self.table_name = :log_accounts
3 | self.sequence_name = :log_accounts_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/action_version.rb:
--------------------------------------------------------------------------------
1 | class Version::ActionVersion < PaperTrail::Version
2 | self.table_name = :log_actions
3 | self.sequence_name = :log_actions_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/bank_statement_version.rb:
--------------------------------------------------------------------------------
1 | class Version::BankStatementVersion < PaperTrail::Version
2 | self.table_name = :log_bank_statements
3 | self.sequence_name = :log_bank_statements_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/bank_transaction_version.rb:
--------------------------------------------------------------------------------
1 | class Version::BankTransactionVersion < PaperTrail::Version
2 | self.table_name = :log_bank_transactions
3 | self.sequence_name = :log_bank_transactions_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/billing/price_version.rb:
--------------------------------------------------------------------------------
1 | class Version::Billing::PriceVersion < PaperTrail::Version
2 | self.table_name = :log_prices
3 | self.sequence_name = :log_prices_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/blocked_domain_version.rb:
--------------------------------------------------------------------------------
1 | class Version::BlockedDomainVersion < PaperTrail::Version
2 | self.table_name = :log_blocked_domains
3 | self.sequence_name = :log_blocked_domains_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/certificate_version.rb:
--------------------------------------------------------------------------------
1 | class Version::CertificateVersion < PaperTrail::Version
2 | self.table_name = :log_certificates
3 | self.sequence_name = :log_certificates_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/dnskey_version.rb:
--------------------------------------------------------------------------------
1 | class Version::DnskeyVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_dnskeys
4 | self.sequence_name = :log_dnskeys_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/domain_contact_version.rb:
--------------------------------------------------------------------------------
1 | class Version::DomainContactVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_domain_contacts
4 | self.sequence_name = :log_domain_contacts_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/invoice_item_version.rb:
--------------------------------------------------------------------------------
1 | class Version::InvoiceItemVersion < PaperTrail::Version
2 | self.table_name = :log_invoice_items
3 | self.sequence_name = :log_invoice_items_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/invoice_version.rb:
--------------------------------------------------------------------------------
1 | class Version::InvoiceVersion < PaperTrail::Version
2 | self.table_name = :log_invoices
3 | self.sequence_name = :log_invoices_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/nameserver_version.rb:
--------------------------------------------------------------------------------
1 | class Version::NameserverVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_nameservers
4 | self.sequence_name = :log_nameservers_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/notification_version.rb:
--------------------------------------------------------------------------------
1 | class Version::NotificationVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_notifications
4 | self.sequence_name = :log_notifications_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/payment_order_version.rb:
--------------------------------------------------------------------------------
1 | class Version::PaymentOrderVersion < PaperTrail::Version
2 | self.table_name = :log_payment_orders
3 | self.sequence_name = :log_payment_orders_id_seq
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/registrant_verification_version.rb:
--------------------------------------------------------------------------------
1 | class Version::RegistrantVerificationVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_registrant_verifications
4 | self.sequence_name = :log_registrant_verifications_id_seq
5 |
6 | scope :deleted, -> { where(event: 'destroy') }
7 | end
8 |
--------------------------------------------------------------------------------
/app/models/version/registrar_version.rb:
--------------------------------------------------------------------------------
1 | class Version::RegistrarVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_registrars
4 | self.sequence_name = :log_registrars_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/reserved_domain_version.rb:
--------------------------------------------------------------------------------
1 | class Version::ReservedDomainVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_reserved_domains
4 | self.sequence_name = :log_reserved_domains_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/setting_entry_version.rb:
--------------------------------------------------------------------------------
1 | class Version::SettingEntryVersion < PaperTrail::Version
2 | self.table_name = :log_setting_entries
3 | self.sequence_name = :log_setting_entries
4 | end
5 |
--------------------------------------------------------------------------------
/app/models/version/setting_version.rb:
--------------------------------------------------------------------------------
1 | class Version::SettingVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_settings
4 | self.sequence_name = :log_settings_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/user_version.rb:
--------------------------------------------------------------------------------
1 | class Version::UserVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_users
4 | self.sequence_name = :log_users_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/version/white_ip_version.rb:
--------------------------------------------------------------------------------
1 | class Version::WhiteIpVersion < PaperTrail::Version
2 | include VersionSession
3 | self.table_name = :log_white_ips
4 | self.sequence_name = :log_white_ips_id_seq
5 | end
6 |
--------------------------------------------------------------------------------
/app/models/whois/server.rb:
--------------------------------------------------------------------------------
1 | module Whois
2 | class Server < ApplicationRecord
3 | self.abstract_class = true
4 | establish_connection :"whois_#{Rails.env}"
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/app/views/admin/accounts/edit.html.erb:
--------------------------------------------------------------------------------
1 |
Editing Account
2 |
3 | <%= render 'form', account: @account %>
4 |
5 | <%= link_to 'Back', admin_accounts_path %>
6 |
--------------------------------------------------------------------------------
/app/views/admin/accounts/new.html.erb:
--------------------------------------------------------------------------------
1 | New Admin Account
2 |
3 | <%= render 'form', account: @account %>
4 |
5 | <%= link_to 'Back', admin_accounts_path %>
6 |
--------------------------------------------------------------------------------
/app/views/admin/accounts/show.html.erb:
--------------------------------------------------------------------------------
1 | <%= notice %>
2 |
3 | <%= link_to 'Edit', edit_admin_account_path(@account) %> |
4 | <%= link_to 'Back', admin_accounts_path %>
5 |
--------------------------------------------------------------------------------
/app/views/admin/admin_users/edit.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | = link_to(t(:back_to_user), [:admin, @admin_user], class: 'btn btn-default')
3 | = render 'shared/title', name: "#{t(:edit)}: #{@admin_user.username}"
4 |
5 | = render 'form'
6 |
--------------------------------------------------------------------------------
/app/views/admin/admin_users/new.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t('.title')
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/bank_statements/new.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | = link_to(t(:back), admin_bank_statements_path, class: 'btn btn-default')
3 |
4 | = render 'shared/title', name: t(:create_bank_statement)
5 |
6 | = render 'form'
7 |
--------------------------------------------------------------------------------
/app/views/admin/bank_transactions/edit.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | = link_to(t(:back), admin_bank_transaction_path(@bank_transaction), class: 'btn btn-default')
3 | = render 'shared/title', name: t(:bank_transaction)
4 |
5 | = render 'form'
6 |
--------------------------------------------------------------------------------
/app/views/admin/bank_transactions/new.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | - if @bank_statement.persisted?
3 | = link_to(t(:back), admin_bank_statement_path(@bank_statement), class: 'btn btn-default')
4 |
5 | = render 'shared/title', name: t(:create_bank_transaction)
6 |
7 | = render 'form'
8 |
--------------------------------------------------------------------------------
/app/views/admin/billing/prices/new.html.erb:
--------------------------------------------------------------------------------
1 |
2 | - <%= link_to t('admin.billing.prices.index.title'), admin_prices_path %>
3 |
4 |
5 |
8 |
9 | <%= render 'form', price: @price %>
10 |
--------------------------------------------------------------------------------
/app/views/admin/blocked_domains/edit.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t(:edit_pw)
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/blocked_domains/new.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t(:add_blocked_domain)
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/contacts/edit.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | = link_to(t('.new_status_btn'), '#', class: 'btn btn-primary js-add-status')
3 | = link_to(t('.back_btn'), [:admin, @contact], class: 'btn btn-default')
4 | = render 'shared/title', name: "#{t(:edit)}: #{@contact.name}"
5 |
6 | = render 'form', contact: @contact
7 |
--------------------------------------------------------------------------------
/app/views/admin/contacts/partials/_search.haml:
--------------------------------------------------------------------------------
1 | = search_form_for [:admin, @q] do |f|
2 | = f.search_field :name_cont
3 | = f.submit do
4 | %span.glyphicon.glyphicon-search
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/views/admin/dashboard/show.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/views/admin/dashboard/show.html.erb
--------------------------------------------------------------------------------
/app/views/admin/disputes/edit.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t(:edit_dispute)
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/disputes/new.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t(:add_disputed_domain)
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/dns/zones/edit.html.erb:
--------------------------------------------------------------------------------
1 |
2 | - <%= link_to t('admin.dns.zones.index.title'), admin_zones_path %>
3 |
4 |
5 |
8 |
9 | <%= render 'form', zone: @zone %>
10 |
--------------------------------------------------------------------------------
/app/views/admin/dns/zones/new.html.erb:
--------------------------------------------------------------------------------
1 |
2 | - <%= link_to t('admin.dns.zones.index.title'), admin_zones_path %>
3 |
4 |
5 |
8 |
9 | <%= render 'form', zone: @zone %>
10 |
--------------------------------------------------------------------------------
/app/views/admin/registrars/new.html.erb:
--------------------------------------------------------------------------------
1 |
2 | - <%= link_to t('admin.registrars.index.header'), admin_registrars_path %>
3 |
4 |
5 |
8 |
9 | <%= render 'form' %>
10 |
--------------------------------------------------------------------------------
/app/views/admin/reserved_domains/edit.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t(:edit_pw)
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/reserved_domains/new.haml:
--------------------------------------------------------------------------------
1 | = render 'shared/title', name: t(:add_reserved_domain)
2 |
3 | = render 'form'
4 |
--------------------------------------------------------------------------------
/app/views/admin/white_ips/edit.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | = link_to(t(:back_to_registrar), admin_registrar_path(@registrar), class: 'btn btn-default')
3 |
4 | = render 'shared/title', name: t(:edit_white_ip)
5 | = render 'form'
6 |
--------------------------------------------------------------------------------
/app/views/admin/white_ips/new.haml:
--------------------------------------------------------------------------------
1 | - content_for :actions do
2 | = link_to(t(:back_to_registrar), admin_registrar_path(@registrar), class: 'btn btn-default')
3 |
4 | = render 'shared/title', name: t('.header')
5 | = render 'form'
6 |
--------------------------------------------------------------------------------
/app/views/eis_billing/directo_response/update.html.erb:
--------------------------------------------------------------------------------
1 | EisBilling::DirectoResponse#update
2 | Find me in app/views/eis_billing/directo_response/update.html.erb
3 |
--------------------------------------------------------------------------------
/app/views/eis_billing/e_invoice_response/update.html.erb:
--------------------------------------------------------------------------------
1 | EisBilling::EInvoiceResponse#update
2 | Find me in app/views/eis_billing/e_invoice_response/update.html.erb
3 |
--------------------------------------------------------------------------------
/app/views/eis_billing/update.json.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/app/views/eis_billing/update.json.erb
--------------------------------------------------------------------------------
/app/views/epp/contacts/delete.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1000') do
4 | xml.msg 'Command completed successfully'
5 | end
6 |
7 | render('epp/shared/trID', builder: xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/views/epp/domains/success.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1000') do
4 | xml.msg 'Command completed successfully'
5 | end
6 |
7 | render('epp/shared/trID', builder: xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/views/epp/domains/success_pending.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1001') do
4 | xml.msg 'Command completed successfully; action pending'
5 | end
6 | render('epp/shared/trID', builder: xml)
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/app/views/epp/poll/poll_no_messages.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1300') do
4 | xml.msg 'Command completed successfully; no messages'
5 | end
6 |
7 | render('epp/shared/trID', builder: xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/views/epp/sample_requests/poll/poll_ack.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ABC-12345
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/views/epp/sample_requests/poll/poll_req.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ABC-12345
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/views/epp/sessions/login_success.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1000') do
4 | xml.msg 'Command completed successfully'
5 | end
6 |
7 | render('epp/shared/trID', builder: xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/views/epp/sessions/logout.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1500') do
4 | xml.msg 'Command completed successfully; ending session'
5 | end
6 |
7 | render('epp/shared/trID', builder: xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/views/epp/shared/_trID.xml.builder:
--------------------------------------------------------------------------------
1 | # builder ||= xml
2 | builder.trID do
3 | builder.clTRID params[:clTRID] if params[:clTRID].present?
4 | builder.svTRID @svTRID
5 | end
6 |
--------------------------------------------------------------------------------
/app/views/epp/shared/success.xml.builder:
--------------------------------------------------------------------------------
1 | xml.epp_head do
2 | xml.response do
3 | xml.result('code' => '1000') do
4 | xml.msg 'Command completed successfully'
5 | end
6 |
7 | render('epp/shared/trID', builder: xml)
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/app/views/layouts/mailer.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | <%= yield %>
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/views/layouts/mailer.text.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/app/views/mailers/accreditation_center_mailer/test_results_are_expired.html.erb:
--------------------------------------------------------------------------------
1 | Test result are expired
2 |
--------------------------------------------------------------------------------
/app/views/mailers/accreditation_center_mailer/test_results_will_expired_in_one_month.html.erb:
--------------------------------------------------------------------------------
1 | Test result will expired in one month
2 |
--------------------------------------------------------------------------------
/app/views/mailers/accreditation_center_mailer/test_was_successfully_passed_admin.html.erb:
--------------------------------------------------------------------------------
1 | Test was successfully passed (ADMIN)
2 |
--------------------------------------------------------------------------------
/app/views/mailers/accreditation_center_mailer/test_was_successfully_passed_registrar.html.erb:
--------------------------------------------------------------------------------
1 | Test was successfully passed (REGISTRAR)
2 |
--------------------------------------------------------------------------------
/app/views/mailers/invoice_mailer/invoice_email.html.erb:
--------------------------------------------------------------------------------
1 | <%= t(:you_have_a_new_invoice) %>
2 | <%= t(:monthly_invoice) if @invoice.monthly_invoice %>
3 |
4 | <%= t(:sincerely) %>,
5 | <%= Setting.registry_invoice_contact %>
6 | <%= @invoice.seller_phone %>
7 |
--------------------------------------------------------------------------------
/app/views/mailers/invoice_mailer/invoice_email.text.erb:
--------------------------------------------------------------------------------
1 | <%= t(:you_have_a_new_invoice) %>
2 | <%= t(:monthly_invoice) if @invoice.monthly_invoice %>
3 |
4 | <%= t(:sincerely) %>,
5 | <%= Setting.registry_invoice_contact %>
6 | <%= @invoice.seller_phone %>
7 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/registrar/_registrar.en.html.erb:
--------------------------------------------------------------------------------
1 |
2 | <%= registrar.name %>
3 | Email: <%= registrar.email %>
4 | Phone: <%= registrar.phone %>
5 | Website: <%= registrar.website %>
6 |
7 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/registrar/_registrar.en.text.erb:
--------------------------------------------------------------------------------
1 | <%= registrar.name %>
2 | Email: <%= registrar.email %>
3 | Phone: <%= registrar.phone %>
4 | Website: <%= registrar.website %>
5 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/registrar/_registrar.et.html.erb:
--------------------------------------------------------------------------------
1 |
2 | <%= registrar.name %>
3 | Email: <%= registrar.email %>
4 | Telefon: <%= registrar.phone %>
5 | Veebileht: <%= registrar.website %>
6 |
7 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/registrar/_registrar.et.text.erb:
--------------------------------------------------------------------------------
1 | <%= registrar.name %>
2 | Email: <%= registrar.email %>
3 | Telefon: <%= registrar.phone %>
4 | Veebileht: <%= registrar.website %>
5 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/registrar/_registrar.ru.html.erb:
--------------------------------------------------------------------------------
1 |
2 | <%= registrar.name %>
3 | Электронная почта: <%= registrar.email %>
4 | Телефон: <%= registrar.phone %>
5 | Веб-сайт: <%= registrar.website %>
6 |
7 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/registrar/_registrar.ru.text.erb:
--------------------------------------------------------------------------------
1 | <%= registrar.name %>
2 | Электронная почта: <%= registrar.email %>
3 | Телефон: <%= registrar.phone %>
4 | Веб-сайт: <%= registrar.website %>
5 |
--------------------------------------------------------------------------------
/app/views/mailers/shared/signatures/_signature.en.html.erb:
--------------------------------------------------------------------------------
1 | Best Regards,
Estonian Internet Foundation
--------------------------------------------------------------------------------
/app/views/mailers/shared/signatures/_signature.en.text.erb:
--------------------------------------------------------------------------------
1 | Best Regards,
2 | Estonian Internet Foundation
--------------------------------------------------------------------------------
/app/views/mailers/shared/signatures/_signature.et.html.erb:
--------------------------------------------------------------------------------
1 | Lugupidamisega
Eesti Interneti Sihtasutus
--------------------------------------------------------------------------------
/app/views/mailers/shared/signatures/_signature.et.text.erb:
--------------------------------------------------------------------------------
1 | Lugupidamisega
2 | Eesti Interneti Sihtasutus
--------------------------------------------------------------------------------
/app/views/mailers/shared/signatures/_signature.ru.html.erb:
--------------------------------------------------------------------------------
1 | С уважением,
Eesti Interneti Sihtasutus
--------------------------------------------------------------------------------
/app/views/mailers/shared/signatures/_signature.ru.text.erb:
--------------------------------------------------------------------------------
1 | С уважением,
2 | Eesti Interneti Sihtasutus
--------------------------------------------------------------------------------
/app/views/shared/_errors.haml:
--------------------------------------------------------------------------------
1 | - if object.errors.any?
2 | - object.errors.each do |attr, err|
3 | - next if attr.match(/\./)
4 | - next if attr == :epp_errors
5 | = "#{attr.to_s.humanize} #{err}"
6 | %br
7 |
--------------------------------------------------------------------------------
/app/views/shared/_flash.haml:
--------------------------------------------------------------------------------
1 | - display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none'
2 | #flash{style: "display: #{display};"}
3 | - type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
4 | - type = 'bg-warning' if flash[:warning]
5 | .alert{class: type}= flash[:notice] || flash[:alert] || flash[:warning]
6 |
--------------------------------------------------------------------------------
/app/views/shared/_full_errors.haml:
--------------------------------------------------------------------------------
1 | .errors
2 | - if object.errors.any?
3 | - object.errors.full_messages.each do |msg|
4 | = msg
5 | %br
6 | %hr
7 |
--------------------------------------------------------------------------------
/bin/bundle:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __dir__)
3 | load Gem.bin_path('bundler', 'bundle')
4 |
--------------------------------------------------------------------------------
/bin/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_PATH = File.expand_path('../config/application', __dir__)
3 | require_relative '../config/boot'
4 | require 'rails/commands'
5 |
--------------------------------------------------------------------------------
/bin/rake:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require_relative '../config/boot'
3 | require 'rake'
4 | Rake.application.run
5 |
--------------------------------------------------------------------------------
/bin/yarn:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_ROOT = File.expand_path('..', __dir__)
3 | Dir.chdir(APP_ROOT) do
4 | exec 'yarnpkg', *ARGV
5 | rescue Errno::ENOENT
6 | $stderr.puts 'Yarn executable was not detected in the system.'
7 | $stderr.puts 'Download Yarn at https://yarnpkg.com/en/docs/install'
8 | exit 1
9 | end
10 |
--------------------------------------------------------------------------------
/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require_relative 'config/environment'
4 | run Rails.application
5 |
--------------------------------------------------------------------------------
/config/boot.rb:
--------------------------------------------------------------------------------
1 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2 |
3 | require 'bundler/setup' # Set up gems listed in the Gemfile.
4 | require 'bootsnap/setup'
5 |
--------------------------------------------------------------------------------
/config/cable.yml:
--------------------------------------------------------------------------------
1 | development:
2 | adapter: async
3 |
4 | test:
5 | adapter: async
6 |
7 | production:
8 | adapter: redis
9 | url: redis://localhost:6379/1
10 | channel_prefix: domain_name_registry_production
11 |
12 | demo:
13 | adapter: redis
14 | url: redis://localhost:6379/1
15 | channel_prefix: domain_name_registry_demo
16 |
--------------------------------------------------------------------------------
/config/environment.rb:
--------------------------------------------------------------------------------
1 | # Load the Rails application.
2 | require_relative 'application'
3 |
4 | # Initialize the Rails application.
5 | Rails.application.initialize!
6 |
--------------------------------------------------------------------------------
/config/environments/staging.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | require 'syslog/logger'
5 | config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
6 | end
7 |
--------------------------------------------------------------------------------
/config/environments/staging.rb.sample:
--------------------------------------------------------------------------------
1 | require_relative 'production'
2 |
3 | Rails.application.configure do
4 | config.action_mailer.show_previews = true
5 | end
--------------------------------------------------------------------------------
/config/initializers/application_controller_renderer.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # ActiveSupport::Reloader.to_prepare do
4 | # ApplicationController.renderer.defaults.merge!(
5 | # http_host: 'example.org',
6 | # https: false
7 | # )
8 | # end
9 |
--------------------------------------------------------------------------------
/config/initializers/aws_ses.rb:
--------------------------------------------------------------------------------
1 | Aws.config.update(
2 | region: ENV['aws_default_region'],
3 | credentials: Aws::Credentials.new(ENV['aws_access_key_id'], ENV['aws_secret_access_key'])
4 | )
5 |
--------------------------------------------------------------------------------
/config/initializers/company_register.rb:
--------------------------------------------------------------------------------
1 | CompanyRegister.configure do |config|
2 | config.username = ENV['company_register_username']
3 | config.password = ENV['company_register_password']
4 | config.cache_period = ENV['company_register_cache_period_days'].to_i.days
5 | config.test_mode = ENV['company_register_test_mode'] == 'true'
6 | end
--------------------------------------------------------------------------------
/config/initializers/cookies_serializer.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Specify a serializer for the signed and encrypted cookie jars.
4 | # Valid options are :json, :marshal, and :hybrid.
5 | Rails.application.config.action_dispatch.cookies_serializer = :json
6 |
--------------------------------------------------------------------------------
/config/initializers/dry_types.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | module Types
4 | include Dry.Types()
5 | end
6 |
--------------------------------------------------------------------------------
/config/initializers/e_invoice.rb:
--------------------------------------------------------------------------------
1 | provider_config = { password: ENV['e_invoice_provider_password'],
2 | test_mode: ENV['e_invoice_provider_test_mode'] == 'true' }
3 | EInvoice.provider = EInvoice::Providers::OmnivaProvider.new(provider_config)
--------------------------------------------------------------------------------
/config/initializers/figaro.rb:
--------------------------------------------------------------------------------
1 | Figaro.require_keys(%w[
2 | app_name
3 | secret_key_base
4 | devise_secret
5 | time_zone
6 | action_mailer_default_host
7 | action_mailer_default_from
8 | ])
9 |
--------------------------------------------------------------------------------
/config/initializers/file_exists_alias.rb:
--------------------------------------------------------------------------------
1 | if !File.respond_to?(:exist?) && File.respond_to?(:exists?)
2 | File.singleton_class.send(:alias_method, :exist?, :exists?)
3 | elsif !File.respond_to?(:exists?) && File.respond_to?(:exist?)
4 | File.singleton_class.send(:alias_method, :exists?, :exist?)
5 | end
--------------------------------------------------------------------------------
/config/initializers/kaminari.rb:
--------------------------------------------------------------------------------
1 | Kaminari.configure do |config|
2 | config.default_per_page = 75
3 | end
4 |
--------------------------------------------------------------------------------
/config/initializers/libs.rb:
--------------------------------------------------------------------------------
1 | require 'application_service'
2 | require 'xsd/schema'
3 |
--------------------------------------------------------------------------------
/config/initializers/load_schemas.rb:
--------------------------------------------------------------------------------
1 | EPP_ALL_SCHEMA = Nokogiri::XML::Schema(File.read('lib/schemas/all-ee-1.3.xsd'))
2 |
--------------------------------------------------------------------------------
/config/initializers/mime_types.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new mime types for use in respond_to blocks:
4 | # Mime::Type.register "text/richtext", :rtf
5 |
--------------------------------------------------------------------------------
/config/initializers/money.rb:
--------------------------------------------------------------------------------
1 | MoneyRails.configure do |config|
2 | # Wrapper for Money#default_currency with additional functionality
3 | config.default_currency = :eur
4 | config.rounding_mode = BigDecimal::ROUND_HALF_EVEN
5 | config.locale_backend = :i18n
6 | end
7 |
--------------------------------------------------------------------------------
/config/initializers/monkey_patches.rb:
--------------------------------------------------------------------------------
1 | require 'core_monkey_patches/array'
2 | require 'core_monkey_patches/hash'
3 | require 'gem_monkey_patches/builder'
4 | require 'gem_monkey_patches/i18n'
5 | require 'gem_monkey_patches/paper_trail'
6 | require 'gem_monkey_patches/ransack'
7 |
--------------------------------------------------------------------------------
/config/initializers/ransack.rb:
--------------------------------------------------------------------------------
1 | Ransack.configure do |config|
2 | config.add_predicate 'contains_array',
3 | arel_predicate: 'contains_array',
4 | formatter: proc { |v| "{#{v}}" },
5 | validator: proc { |v| v.present? },
6 | type: :string
7 | end
--------------------------------------------------------------------------------
/config/locales/account_activities.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | activerecord:
3 | attributes:
4 | account_activity:
5 | created_at: Receipt date
6 |
--------------------------------------------------------------------------------
/config/locales/admin/account_activities.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | account_activities:
4 | search_form:
5 | download_btn: Download CSV
6 | reset_btn: Reset
7 |
--------------------------------------------------------------------------------
/config/locales/admin/admin_users.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | admin_users:
4 | index:
5 | title: Admin users
6 | new_btn: New admin user
7 | new:
8 | title: New admin user
9 |
--------------------------------------------------------------------------------
/config/locales/admin/bank_statements.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | bank_statements:
4 | index:
5 | import_btn: Import
--------------------------------------------------------------------------------
/config/locales/admin/base.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | base:
4 | menu:
5 | sign_out: Sign out
--------------------------------------------------------------------------------
/config/locales/admin/blocked_domains.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | blocked_domains:
4 | index:
5 | title: Blocked domains
6 | new_btn: New blocked domain
7 | reset_btn: Reset
8 | csv_btn: CSV
9 |
--------------------------------------------------------------------------------
/config/locales/admin/certificates.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | certificates:
4 | new:
5 | certificate_file: Certificate file
--------------------------------------------------------------------------------
/config/locales/admin/contact_versions.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | contact_versions:
4 | index:
5 | reset_btn: Reset
6 | csv_btn: CSV
7 |
--------------------------------------------------------------------------------
/config/locales/admin/domains/force_delete.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | domains:
4 | force_delete:
5 | create:
6 | scheduled: Force delete procedure has been scheduled
7 |
8 | destroy:
9 | cancelled: Force delete procedure has been cancelled
10 |
--------------------------------------------------------------------------------
/config/locales/admin/email_verifable.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | email_verifable:
3 | email_smtp_check_error: SMTP check error
4 | email_mx_check_error: Mail domain not found
5 | email_regex_check_error: Invalid format
6 |
--------------------------------------------------------------------------------
/config/locales/admin/email_verifable.et.yml:
--------------------------------------------------------------------------------
1 | et:
2 | email_verifable:
3 | email_smtp_check_error: Eposti aadressi ei leitud (SMTP viga)
4 | email_mx_check_error: Eposti aadressi domeeni ei leitud
5 | email_regex_check_error: Eposti aadress on vigane
6 |
--------------------------------------------------------------------------------
/config/locales/admin/epp_logs.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | epp_logs:
4 | index:
5 | title: EPP log
6 | reset_btn: Reset
7 | csv_btn: CSV
8 | show:
9 | title: EPP log
10 |
--------------------------------------------------------------------------------
/config/locales/admin/invoices/delivery.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | invoices:
4 | delivery:
5 | new:
6 | header: Send invoice
7 | submit_btn: Send
8 |
9 | create:
10 | delivered: Invoice has been sent
--------------------------------------------------------------------------------
/config/locales/admin/legal_documents.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | legal_doc_not_found: "There is an error downloading legal document: file not found"
3 |
--------------------------------------------------------------------------------
/config/locales/admin/legal_documents.et.yml:
--------------------------------------------------------------------------------
1 | et:
2 | legal_doc_not_found: "Viga juriidilise dokumendi allalaadimisel: faili ei leitud"
3 |
--------------------------------------------------------------------------------
/config/locales/admin/repp_logs.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | repp_logs:
4 | index:
5 | title: REPP log
6 | reset_btn: Reset
7 | csv_btn: CSV
8 | show:
9 | title: REPP log
10 |
11 |
--------------------------------------------------------------------------------
/config/locales/admin/reserved_domains.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | reserved_domains:
4 | index:
5 | title: Reserved domains
6 | new_btn: New reserved domain
7 | reset_btn: Reset
8 | csv_btn: CSV
9 |
10 | form:
11 | password_hint: Generated automatically if left blank
12 |
--------------------------------------------------------------------------------
/config/locales/admin/sessions.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | sessions:
4 | new:
5 | header_html: Eesti Interneti SA
Admin portal
6 | sign_in_btn: Sign in
7 | remember_checkbox: Remember me
--------------------------------------------------------------------------------
/config/locales/admin/white_ips.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | admin:
3 | white_ips:
4 | new:
5 | header: New whitelisted IP
6 |
--------------------------------------------------------------------------------
/config/locales/api/authorization.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | api:
3 | authorization:
4 | ip_not_allowed: Access denied from IP %{ip}
5 |
--------------------------------------------------------------------------------
/config/locales/api_users.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | activerecord:
3 | attributes:
4 | api_user:
5 | plain_text_password: Password
6 | roles: Role
7 |
--------------------------------------------------------------------------------
/config/locales/contacts.et.yml:
--------------------------------------------------------------------------------
1 | et:
2 | activerecord:
3 | models:
4 | # Used in ContactMailer
5 | registrant: Registreerija
6 | admin_domain_contact: Halduskontakt
7 | tech_domain_contact: Tehniline kontakt
8 |
--------------------------------------------------------------------------------
/config/locales/epp/domains.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | epp:
3 | domains:
4 | object_is_not_eligible_for_renewal: Object is not eligible for renewal; Expiration date must be before %{max_date}
5 |
--------------------------------------------------------------------------------
/config/locales/mailers/invoice.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | invoice_mailer:
3 | invoice_email:
4 | subject: Invoice no. %{invoice_number}
--------------------------------------------------------------------------------
/config/locales/mailers/registrar.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar_mailer:
3 | contact_verified:
4 | subject: >-
5 | Teade: Kontakti [%{contact_code}] kinnitamine edukalt lõpule viidud
6 | / Notification: Contact [%{contact_code}] verification successfully completed
--------------------------------------------------------------------------------
/config/locales/nameservers.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | activerecord:
3 | errors:
4 | models:
5 | nameserver:
6 | attributes:
7 | base:
8 | ip_required: Either IPv4 or IPv6 is required for glue record generation
9 |
--------------------------------------------------------------------------------
/config/locales/registrant/base.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrant:
3 | company_register_unavailable: >-
4 | Company register is unavailable.
5 | Domains and contacts associated via organizations are not shown.
--------------------------------------------------------------------------------
/config/locales/registrant/domain_delete_confirms.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrant:
3 | domain_delete_confirms:
4 | show:
5 | registrant: Registrant
6 |
--------------------------------------------------------------------------------
/config/locales/registrant/sessions.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrant:
3 | sessions:
4 | new:
5 | header: Sign in with identity document
6 | hint: >-
7 | Sign in using Estonian (incl. e-residents) ID card, mobile ID,
8 | Bank link or other EU citizen's electronic ID supported by EIDAS.
9 |
--------------------------------------------------------------------------------
/config/locales/registrar/account_activities.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | account_activities:
4 | search_form:
5 | download_btn: Download CSV
6 | reset_btn: Reset
7 |
--------------------------------------------------------------------------------
/config/locales/registrar/admin_contacts.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | admin_contacts:
4 | update:
5 | replaced: Admin contacts have been successfully replaced.
6 | replaced: Technical contacts have been successfully replaced.
7 |
--------------------------------------------------------------------------------
/config/locales/registrar/authorization.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | authorization:
4 | ip_not_allowed: Access denied from IP %{ip}
5 |
--------------------------------------------------------------------------------
/config/locales/registrar/base.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | base:
4 | current_user:
5 | sign_out: Log out
6 |
--------------------------------------------------------------------------------
/config/locales/registrar/contacts.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | contacts:
4 | search_form:
5 | download_pdf_btn: Download PDF
6 | download_csv_btn: Download CSV
7 | reset_btn: Reset
8 |
9 | partials:
10 | domains:
11 | roles: Roles
12 |
--------------------------------------------------------------------------------
/config/locales/registrar/current_user.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | current_user:
4 | switch:
5 | switched: You are now signed in as a user "%{new_user}"
6 |
--------------------------------------------------------------------------------
/config/locales/registrar/invoices/delivery.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | invoices:
4 | delivery:
5 | new:
6 | header: Send invoice
7 | submit_btn: Send
8 |
9 | create:
10 | delivered: Invoice has been sent
--------------------------------------------------------------------------------
/config/locales/registrar/nameservers.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | nameservers:
4 | update:
5 | replaced: Nameserver have been successfully replaced
6 | added: Nameserver have been successfully added
7 | affected_domains: Affected domains
8 | skipped_domains: Untouched domains
9 |
--------------------------------------------------------------------------------
/config/locales/registrar/polls.en.yml:
--------------------------------------------------------------------------------
1 | en:
2 | registrar:
3 | polls:
4 | show:
5 | header: Messages (%{count})
6 |
--------------------------------------------------------------------------------
/config/locales/registrars.et.yml:
--------------------------------------------------------------------------------
1 | et:
2 | registrar:
3 | invoice_yearly_product_description: '%{tld} registreerimine: %{length} aasta(t)'
4 | invoice_monthly_product_description: '%{tld} registreerimine: %{length} kuu(d)'
5 | monthly_summary_title: 'Domeenide registreerimine - %{date}'
6 |
--------------------------------------------------------------------------------
/config/sidekiq.yml:
--------------------------------------------------------------------------------
1 | :concurrency: 10
2 |
--------------------------------------------------------------------------------
/config/spring.rb:
--------------------------------------------------------------------------------
1 | %w(
2 | .ruby-version
3 | .rbenv-vars
4 | tmp/restart.txt
5 | tmp/caching-dev.txt
6 | ).each { |path| Spring.watch(path) }
7 |
--------------------------------------------------------------------------------
/db/data/20150609093515_add_renew_setting.rb:
--------------------------------------------------------------------------------
1 | class AddRenewSetting < ActiveRecord::Migration[5.1]
2 | def self.up
3 | # Setting.days_to_renew_domain_before_expire = 90
4 | end
5 |
6 | def self.down
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/data/20150610111019_add_expire_settings.rb:
--------------------------------------------------------------------------------
1 | class AddExpireSettings < ActiveRecord::Migration[5.1]
2 | def self.up
3 | # Setting.expire_warning_period = 15
4 | # Setting.redemption_grace_period = 30
5 | end
6 |
7 | def self.down
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/data_schema.rb:
--------------------------------------------------------------------------------
1 | DataMigrate::Data.define(version: 20201007104651)
2 |
--------------------------------------------------------------------------------
/db/migrate/20140701130945_add_name_dirty_to_domains.rb:
--------------------------------------------------------------------------------
1 | class AddNameDirtyToDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :name_dirty, :string
4 | add_column :domains, :name_puny, :string
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20140702144833_countries_table_rename.rb:
--------------------------------------------------------------------------------
1 | class CountriesTableRename < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :country_id, :countries
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140702145448_address_column_rename.rb:
--------------------------------------------------------------------------------
1 | class AddressColumnRename < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :addresses, :address, :street
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140724084927_add_ident_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddIdentToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :ident, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140730082532_add_ident_type_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddIdentTypeToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :ident_type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140730104916_add_period_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddPeriodToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :period, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140730141443_add_contacts_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddContactsToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :domain_contacts do |t|
4 | t.integer :contact_id
5 | t.integer :domain_id
6 | t.string :contact_type
7 |
8 | t.timestamps
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20140731073300_add_org_name_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddOrgNameToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :org_name, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140731081816_add_nameservers_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddNameserversToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :domains_nameservers do |t|
4 | t.integer :domain_id
5 | t.integer :nameserver_id
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/migrate/20140801140249_rename_nameserver_name.rb:
--------------------------------------------------------------------------------
1 | class RenameNameserverName < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :nameservers, :name, :hostname
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140804095654_add_user_stamps_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddUserStampsToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :created_by_id, :integer
4 | add_column :contacts, :updated_by_id, :integer
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20140808132327_add_period_unit_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddPeriodUnitToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :period_unit, :char
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140813102245_add_streets_to_address.rb:
--------------------------------------------------------------------------------
1 | class AddStreetsToAddress < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :addresses, :street2, :string
4 | add_column :addresses, :street3, :string
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20140813135408_add_ipv6_to_nameserver.rb:
--------------------------------------------------------------------------------
1 | class AddIpv6ToNameserver < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :nameservers, :ip, :ipv4
4 | add_column :nameservers, :ipv6, :string
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20140815082619_create_setting_groups.rb:
--------------------------------------------------------------------------------
1 | class CreateSettingGroups < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :setting_groups do |t|
4 | t.string :code
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20140815114000_add_auth_info_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddAuthInfoToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :auth_info, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140819095802_create_domains_statuses.rb:
--------------------------------------------------------------------------------
1 | class CreateDomainsStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :domain_statuses do |t|
4 | t.integer :domain_id
5 | t.integer :setting_id
6 | t.string :description
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20140826082057_create_domain_nameservers.rb:
--------------------------------------------------------------------------------
1 | class CreateDomainNameservers < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :domain_nameservers, id: false do |t|
4 | t.integer :domain_id
5 | t.integer :nameserver_id
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/migrate/20140826103454_drop_domains_nameservers.rb:
--------------------------------------------------------------------------------
1 | class DropDomainsNameservers < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :domains_nameservers
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140827140759_add_transfer_fields_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddTransferFieldsToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :transferred_at, :datetime
4 | add_column :domains, :transfer_requested_at, :datetime
5 | add_column :domains, :transfer_to, :integer
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20140828072329_populate_general_domain_settings.rb:
--------------------------------------------------------------------------------
1 | class PopulateGeneralDomainSettings < ActiveRecord::Migration[6.0]
2 | def change
3 | SettingGroup.create(
4 | code: 'domain_general',
5 | settings: [
6 | Setting.create(code: 'transfer_wait_time', value: 0)
7 | ]
8 | )
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/db/migrate/20140828080320_remove_transfer_fields_from_domain.rb:
--------------------------------------------------------------------------------
1 | class RemoveTransferFieldsFromDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :domains, :transferred_at
4 | remove_column :domains, :transfer_requested_at
5 | remove_column :domains, :transfer_to
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20140911101310_add_domain_directly_to_nameserver.rb:
--------------------------------------------------------------------------------
1 | class AddDomainDirectlyToNameserver < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :nameservers, :domain_id, :integer
4 | remove_column :nameservers, :ns_set_id
5 | drop_table :nameservers_ns_sets
6 | drop_table :ns_sets
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/migrate/20140911101604_clean_redundant_fields.rb:
--------------------------------------------------------------------------------
1 | class CleanRedundantFields < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :domain_nameservers
4 | remove_column :domains, :admin_contact_id
5 | remove_column :domains, :technical_contact_id
6 | remove_column :domains, :ns_set_id
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/migrate/20140925073340_remove_address_type.rb:
--------------------------------------------------------------------------------
1 | class RemoveAddressType < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :addresses, :type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140925073734_add_name_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddNameToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :addresses, :name, :string
4 | remove_column :addresses, :org_name, :string
5 | add_column :contacts, :name, :string
6 | add_column :contacts, :org_name, :string
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/migrate/20140925084916_add_admin_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddAdminToUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :users, :admin, :boolean, default: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140925085340_add_identity_code_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddIdentityCodeToUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :users, :identity_code, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140925101927_add_registrar_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarToUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :users, :registrar_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140929095329_add_wait_until_to_domain_transfer.rb:
--------------------------------------------------------------------------------
1 | class AddWaitUntilToDomainTransfer < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domain_transfers, :wait_until, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20140930093039_add_country_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddCountryToUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :users, :country_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20141001085322_create_dnskeys.rb:
--------------------------------------------------------------------------------
1 | class CreateDnskeys < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :dnskeys do |t|
4 | t.integer :domain_id
5 | t.integer :flags
6 | t.integer :protocol
7 | t.integer :alg
8 | t.string :public_key
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20141006130306_add_registrar_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarToContacts < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :registrar_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20141009100818_create_delegation_signer.rb:
--------------------------------------------------------------------------------
1 | class CreateDelegationSigner < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :delegation_signers do |t|
4 | t.integer :domain_id
5 | t.string :key_tag
6 | t.integer :alg
7 | t.integer :digest_type
8 | t.string :digest
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20141009101337_add_delegation_signer_to_dnskey.rb:
--------------------------------------------------------------------------------
1 | class AddDelegationSignerToDnskey < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :dnskeys, :delegation_signer_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20141010085152_add_snapshot_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddSnapshotToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domain_versions, :snapshot, :text
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20141010130412_add_ds_filelds_to_dnskey.rb:
--------------------------------------------------------------------------------
1 | class AddDsFileldsToDnskey < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :dnskeys, :ds_key_tag, :string
4 | add_column :dnskeys, :ds_alg, :integer
5 | add_column :dnskeys, :ds_digest_type, :integer
6 | add_column :dnskeys, :ds_digest, :string
7 | end
8 | end
9 |
10 |
--------------------------------------------------------------------------------
/db/migrate/20141014073435_change_public_key_type_to_text.rb:
--------------------------------------------------------------------------------
1 | class ChangePublicKeyTypeToText < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :dnskeys, :public_key, :text
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20141216075056_create_contact_statuses.rb:
--------------------------------------------------------------------------------
1 | class CreateContactStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :contact_statuses do |t|
4 | t.string :value
5 | t.string :description
6 | t.belongs_to :contact
7 | t.timestamps
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/db/migrate/20141216133831_remove_registrar_from_user.rb:
--------------------------------------------------------------------------------
1 | class RemoveRegistrarFromUser < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :users, :registrar_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20141229115619_create_legal_documents.rb:
--------------------------------------------------------------------------------
1 | class CreateLegalDocuments < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :legal_documents do |t|
4 | t.string :document_type
5 | t.text :body
6 | t.references :documentable, polymorphic: true
7 |
8 | t.timestamps
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20150105134026_drop_cached_nameservers.rb:
--------------------------------------------------------------------------------
1 | class DropCachedNameservers < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :cached_nameservers
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150110000000_rename_epp_users_to_api_users.rb:
--------------------------------------------------------------------------------
1 | class RenameEppUsersToApiUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table('epp_users', 'api_users')
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150130085458_add_more_fields_to_registrar.rb:
--------------------------------------------------------------------------------
1 | class AddMoreFieldsToRegistrar < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :phone, :string
4 | add_column :registrars, :email, :string
5 | add_column :registrars, :billing_email, :string
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20150130155904_add_name_server_version_ids.rb:
--------------------------------------------------------------------------------
1 | class AddNameServerVersionIds < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :log_domains, :nameserver_version_ids, :text, array: true, default: []
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150200000000_add_whois_body.rb:
--------------------------------------------------------------------------------
1 | class AddWhoisBody < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :whois_body, :text
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150212125339_add_state_to_address.rb:
--------------------------------------------------------------------------------
1 | class AddStateToAddress < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :addresses, :state, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150217133755_add_country_code_ident.rb:
--------------------------------------------------------------------------------
1 | class AddCountryCodeIdent < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :ident_country_code, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150217133937_add_index_for_contact_code.rb:
--------------------------------------------------------------------------------
1 | class AddIndexForContactCode < ActiveRecord::Migration[6.0]
2 | def change
3 | add_index :contacts, :code
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150226121252_remove_country_id_columns.rb:
--------------------------------------------------------------------------------
1 | class RemoveCountryIdColumns < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :registrars, :country_id, :integer
4 | remove_column :users, :country_id, :integer
5 | remove_column :addresses, :country_id, :integer
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20150227113121_change_api_user_default_value.rb:
--------------------------------------------------------------------------------
1 | class ChangeApiUserDefaultValue < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_default :users, :active, nil
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150303130729_add_code_to_registrar.rb:
--------------------------------------------------------------------------------
1 | class AddCodeToRegistrar < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :code, :string
4 | add_index :registrars, :code
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150318084300_add_domain_contact_type.rb:
--------------------------------------------------------------------------------
1 | class AddDomainContactType < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domain_contacts, :type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150320132023_create_invoices.rb:
--------------------------------------------------------------------------------
1 | class CreateInvoices < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :invoices do |t|
4 | t.timestamps null: false
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20150330083700_depricate_contact_disclouser_table.rb:
--------------------------------------------------------------------------------
1 | class DepricateContactDisclouserTable < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :contact_disclosures
4 | drop_table :log_contact_disclosures
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150402114712_drop_delayed_job.rb:
--------------------------------------------------------------------------------
1 | class DropDelayedJob < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :delayed_jobs
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150410124724_create_accounts.rb:
--------------------------------------------------------------------------------
1 | class CreateAccounts < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :accounts do |t|
4 | t.integer :registrar_id
5 | t.string :account_type
6 | t.decimal :balance
7 |
8 | t.timestamps
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20150413140933_add_identity_code_index.rb:
--------------------------------------------------------------------------------
1 | class AddIdentityCodeIndex < ActiveRecord::Migration[6.0]
2 | def change
3 | add_index :users, :identity_code
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150414092249_add_reference_no_to_registrar.rb:
--------------------------------------------------------------------------------
1 | class AddReferenceNoToRegistrar < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :reference_no, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150414124630_fix_account_activities_name.rb:
--------------------------------------------------------------------------------
1 | class FixAccountActivitiesName < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :account_activites, :account_activities
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150415075408_fix_account_balances_to_decimal.rb:
--------------------------------------------------------------------------------
1 | class FixAccountBalancesToDecimal < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :accounts, :balance, :decimal, null: false, default: 0
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150416080828_add_currency_to_account.rb:
--------------------------------------------------------------------------------
1 | class AddCurrencyToAccount < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :accounts, :currency, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150416091357_rename_domain_owner_to_registrant.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainOwnerToRegistrant < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :domains, :owner_contact_id, :registrant_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150416092026_add_description_to_account_activity.rb:
--------------------------------------------------------------------------------
1 | class AddDescriptionToAccountActivity < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :account_activities, :description, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150421134820_add_whosi_json_body.rb:
--------------------------------------------------------------------------------
1 | class AddWhosiJsonBody < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :whois_json, :json
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150422132631_save_legal_docs_to_disk.rb:
--------------------------------------------------------------------------------
1 | class SaveLegalDocsToDisk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :legal_documents, :path, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150423083308_add_number_to_invoices.rb:
--------------------------------------------------------------------------------
1 | class AddNumberToInvoices < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :invoices, :number, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150427073517_add_cancelled_at_to_invoice.rb:
--------------------------------------------------------------------------------
1 | class AddCancelledAtToInvoice < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :invoices, :cancelled_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150428075052_add_sum_cache_to_invoice.rb:
--------------------------------------------------------------------------------
1 | class AddSumCacheToInvoice < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :invoices, :sum_cache, :decimal
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150430121807_add_registrar_id_to_whois_record.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarIdToWhoisRecord < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :whois_records, :registrar_id, :integer
4 | add_index :whois_records, :registrar_id
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150511120755_add_index_to_contact_type.rb:
--------------------------------------------------------------------------------
1 | class AddIndexToContactType < ActiveRecord::Migration[6.0]
2 | def change
3 | add_index :contacts, [:registrar_id, :ident_type]
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150512160938_add_registrant_changed_at_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrantChangedAtToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :registrant_verification_asked_at, :datetime
4 | add_index :domains, :registrant_verification_asked_at
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150513080013_add_registrant_verification_token.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrantVerificationToken < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :registrant_verification_token, :string
4 | add_index :domains, :registrant_verification_token
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150514132606_add_registrant_ident_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrantIdentToUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :users, :registrant_ident, :string
4 | add_index :users, :registrant_ident
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150515103222_add_pending_requests.rb:
--------------------------------------------------------------------------------
1 | class AddPendingRequests < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :pending_json, :json
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150519094929_add_aciton_to_registrant_verification.rb:
--------------------------------------------------------------------------------
1 | class AddAcitonToRegistrantVerification < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrant_verifications, :action, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150519095416_add_domain_id_to_registrant_verifications.rb:
--------------------------------------------------------------------------------
1 | class AddDomainIdToRegistrantVerifications < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrant_verifications, :domain_id, :integer
4 | add_index :registrant_verifications, :domain_id
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150519102521_add_action_type_to_registrant_verifications.rb:
--------------------------------------------------------------------------------
1 | class AddActionTypeToRegistrantVerifications < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrant_verifications, :action_type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150519115050_create_white_ip.rb:
--------------------------------------------------------------------------------
1 | class CreateWhiteIp < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :white_ips do |t|
4 | t.integer :registrar_id
5 | t.string :ipv4
6 | t.string :ipv6
7 | t.string :interface
8 | t.timestamps
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20150520163237_add_defalut_role.rb:
--------------------------------------------------------------------------------
1 | class AddDefalutRole < ActiveRecord::Migration[6.0]
2 | def change
3 | ApiUser.all.each do |u|
4 | u.update_column :roles, ['super'] if u.roles.blank?
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20150520164507_add_registrar_id_to_epp_session.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarIdToEppSession < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :epp_sessions, :registrar_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150521120145_add_fields_for_certificate.rb:
--------------------------------------------------------------------------------
1 | class AddFieldsForCertificate < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :certificates, :common_name, :string
4 | add_column :certificates, :md5, :string
5 | add_column :certificates, :interface, :string
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20150603211318_change_price_to_decimal.rb:
--------------------------------------------------------------------------------
1 | class ChangePriceToDecimal < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :pricelists, :price_cents, :decimal, precision: 8, scale: 2
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150603212659_add_duration_to_pricelist.rb:
--------------------------------------------------------------------------------
1 | class AddDurationToPricelist < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :pricelists, :duration, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150609103333_update_pricelist_chema.rb:
--------------------------------------------------------------------------------
1 | class UpdatePricelistChema < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :pricelists, :operation_category, :string
4 | rename_column :pricelists, :name, :desc
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150610112238_add_outzone_at_and_delete_at_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddOutzoneAtAndDeleteAtToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :outzone_at, :datetime unless column_exists?(:domains, :outzone_at)
4 | add_column :domains, :delete_at, :datetime unless column_exists?(:domains, :delete_at)
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150610144547_add_force_delete_at_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddForceDeleteAtToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :force_delete_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150611124920_add_que.rb:
--------------------------------------------------------------------------------
1 | class AddQue < ActiveRecord::Migration[6.0]
2 | def self.up
3 | # The current version as of this migration's creation.
4 | # Que.migrate! :version => 3
5 | end
6 |
7 | def self.down
8 | # Completely removes Que's job queue.
9 | # Que.migrate! :version => 0
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20150612123111_add_statuses_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddStatusesToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :statuses, :string, array: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150703084632_increase_precision_of_pricelist.rb:
--------------------------------------------------------------------------------
1 | class IncreasePrecisionOfPricelist < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :pricelists, :price_cents, :decimal, precision: 10, scale: 2
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150706091724_add_activity_type_to_account_activities.rb:
--------------------------------------------------------------------------------
1 | class AddActivityTypeToAccountActivities < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :account_activities, :activity_type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150707103241_add_statuses_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddStatusesToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :statuses, :string, array: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150707104937_refactor_reserved_domains.rb:
--------------------------------------------------------------------------------
1 | class RefactorReservedDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :reserved_domains, :name
4 | add_column :reserved_domains, :names, :hstore
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150709092549_add_reserved_field_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddReservedFieldToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :reserved, :boolean, default: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150713113436_add_log_pricelist_id_to_account_activity.rb:
--------------------------------------------------------------------------------
1 | class AddLogPricelistIdToAccountActivity < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :account_activities, :log_pricelist_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150722071128_add_contact_and_domain_status_notes.rb:
--------------------------------------------------------------------------------
1 | class AddContactAndDomainStatusNotes < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :status_notes, :hstore
4 | add_column :domains, :status_notes, :hstore
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150803080914_add_ns_data_to_zones.rb:
--------------------------------------------------------------------------------
1 | class AddNsDataToZones < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :zonefile_settings, :ns_records, :text
4 | add_column :zonefile_settings, :a_records, :text
5 | add_column :zonefile_settings, :a4_records, :text
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20150810114746_add_statuses_backup_for_domains.rb:
--------------------------------------------------------------------------------
1 | class AddStatusesBackupForDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | # add_column :domains, :statuses_backup, :string, array: true, default: []
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150903105659_add_updated_token.rb:
--------------------------------------------------------------------------------
1 | class AddUpdatedToken < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :legacy_ident_updated_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150910113839_add_copy_from_id.rb:
--------------------------------------------------------------------------------
1 | class AddCopyFromId < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :copy_from_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150915094707_add_multiple_interfaces_for_white_ip.rb:
--------------------------------------------------------------------------------
1 | class AddMultipleInterfacesForWhiteIp < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :white_ips, :interface, "varchar[] USING (string_to_array(interface, ','))"
4 | rename_column :white_ips, :interface, :interfaces
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20150921110152_update_contacts_logs.rb:
--------------------------------------------------------------------------------
1 | class UpdateContactsLogs < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :log_contacts, :legacy_ident_updated_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20150921111842_rename_contact_ident_updator.rb:
--------------------------------------------------------------------------------
1 | class RenameContactIdentUpdator < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :contacts, :legacy_ident_updated_at, :ident_updated_at
4 | rename_column :log_contacts, :legacy_ident_updated_at, :ident_updated_at
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20151028183132_add_updated_at_to_dnskey.rb:
--------------------------------------------------------------------------------
1 | class AddUpdatedAtToDnskey < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :dnskeys, :updated_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20151029152638_add_legacy_id_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddLegacyIdToUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :users, :legacy_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20151112160452_add_legacy_id_to_reserved_domains.rb:
--------------------------------------------------------------------------------
1 | class AddLegacyIdToReservedDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :reserved_domains, :legacy_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20151120090455_index_domains_on_name.rb:
--------------------------------------------------------------------------------
1 | class IndexDomainsOnName < ActiveRecord::Migration[6.0]
2 | def change
3 | add_index :domains, :name, unique: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20151130175654_nameservers_i_ps_are_arrays.rb:
--------------------------------------------------------------------------------
1 | class NameserversIPsAreArrays < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :nameservers, :ipv6, "varchar[] USING (string_to_array(ipv6, ','))", default: []
4 | change_column :nameservers, :ipv4, "varchar[] USING (string_to_array(ipv4, ','))", default: []
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20160108135436_name_and_password_for_blocked_domain.rb:
--------------------------------------------------------------------------------
1 | class NameAndPasswordForBlockedDomain < ActiveRecord::Migration[6.0]
2 | def up
3 | add_column :blocked_domains, :name, :string
4 | add_index :blocked_domains, :name
5 | remove_column :blocked_domains, :names
6 | end
7 |
8 | def down
9 |
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20160113143447_create_directos.rb:
--------------------------------------------------------------------------------
1 | class CreateDirectos < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :directos do |t|
4 | t.belongs_to :item, index: true, polymorphic: true
5 | t.json :response
6 |
7 | t.timestamps null: false
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/db/migrate/20160118092454_add_in_directo_to_invoice.rb:
--------------------------------------------------------------------------------
1 | class AddInDirectoToInvoice < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :invoices, :in_directo, :boolean, default: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160218102355_index_domain_statuses.rb:
--------------------------------------------------------------------------------
1 | class IndexDomainStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | add_index :domains, :statuses, using: :gin
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160225113801_add_up_id_value_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddUpIdValueToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :upid, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160225113812_add_up_id_value_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddUpIdValueToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :upid, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160226132045_add_up_date_value_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddUpDateValueToDomain < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :up_date, :timestamp
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160226132056_add_up_date_value_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddUpDateValueToContact < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :up_date, :timestamp
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160304125933_add_invoice_number_to_directo.rb:
--------------------------------------------------------------------------------
1 | class AddInvoiceNumberToDirecto < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :directos, :invoice_number, :string
4 | execute "UPDATE directos d SET invoice_number=i.number FROM invoices i WHERE d.item_type='Invoice' AND d.item_id=i.id"
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20160311085957_add_test_registrar_to_registrar.rb:
--------------------------------------------------------------------------------
1 | class AddTestRegistrarToRegistrar < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :test_registrar, :boolean, default: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160405131315_add_request_to_directo.rb:
--------------------------------------------------------------------------------
1 | class AddRequestToDirecto < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :directos, :request, :text
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20160421074023_add_log_matching_column.rb:
--------------------------------------------------------------------------------
1 | class AddLogMatchingColumn < ActiveRecord::Migration[6.0]
2 |
3 | def change
4 |
5 | ApiLog::EppLog.connection.execute("ALTER TABLE epp_logs ADD COLUMN uuid varchar;")
6 | ApiLog::ReppLog.connection.execute("ALTER TABLE repp_logs ADD COLUMN uuid varchar;")
7 |
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20160429114732_add_puny_hostname_to_nameserver.rb:
--------------------------------------------------------------------------------
1 | class AddPunyHostnameToNameserver < ActiveRecord::Migration[6.0]
2 |
3 | def change
4 |
5 | add_column :nameservers, :hostname_puny, :string
6 | execute "UPDATE nameservers n SET hostname_puny = n.hostname"
7 |
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20160527110738_change_contact_statuses_default.rb:
--------------------------------------------------------------------------------
1 | class ChangeContactStatusesDefault < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_default :contacts, :statuses, []
4 | Contact.where(statuses: nil). update_all(statuses: [])
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20160629114503_add_hash_to_legal_doc.rb:
--------------------------------------------------------------------------------
1 | class AddHashToLegalDoc < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :legal_documents, :checksum, :string
4 | add_index :legal_documents, :checksum
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170221115548_rename_registrar_url_to_website.rb:
--------------------------------------------------------------------------------
1 | class RenameRegistrarUrlToWebsite < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :registrars, :url, :website
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170419120048_rename_zonefile_settings_to_zones.rb:
--------------------------------------------------------------------------------
1 | class RenameZonefileSettingsToZones < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :zonefile_settings, :zones
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170420125200_remove_log_zonefile_settings.rb:
--------------------------------------------------------------------------------
1 | class RemoveLogZonefileSettings < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :log_zonefile_settings
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170422162824_change_pricelist_duration_type_to_interval.rb:
--------------------------------------------------------------------------------
1 | class ChangePricelistDurationTypeToInterval < ActiveRecord::Migration[6.0]
2 | def change
3 | execute <<-SQL
4 | ALTER TABLE pricelists ALTER COLUMN duration TYPE interval USING (trim(duration)::interval)
5 | SQL
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20170423151046_rename_pricelists_to_prices.rb:
--------------------------------------------------------------------------------
1 | class RenamePricelistsToPrices < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :pricelists, :prices
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170423210622_change_price_price_cents_type_to_integer.rb:
--------------------------------------------------------------------------------
1 | class ChangePricePriceCentsTypeToInteger < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :prices, :price_cents, 'integer USING CAST(price_cents AS integer)'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170423214500_remove_price_price_currency.rb:
--------------------------------------------------------------------------------
1 | class RemovePricePriceCurrency < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :prices, :price_currency, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170423222302_remove_price_price_cents_default.rb:
--------------------------------------------------------------------------------
1 | class RemovePricePriceCentsDefault < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_default :prices, :price_cents, nil
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170506144743_remove_price_desc.rb:
--------------------------------------------------------------------------------
1 | class RemovePriceDesc < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :prices, :desc, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170506155009_rename_account_activity_log_pricelist_id_to_price_id.rb:
--------------------------------------------------------------------------------
1 | class RenameAccountActivityLogPricelistIdToPriceId < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :account_activities, :log_pricelist_id, :price_id
4 | add_foreign_key :account_activities, :prices
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170506162952_add_account_activity_account_id_foreign_key.rb:
--------------------------------------------------------------------------------
1 | class AddAccountActivityAccountIdForeignKey < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :account_activities, :account_id, :integer, null: false
4 | add_foreign_key :account_activities, :accounts
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170506205356_add_account_activity_invoice_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddAccountActivityInvoiceIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :account_activities, :invoices
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170506205946_add_account_activity_bank_transaction_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddAccountActivityBankTransactionIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :account_activities, :bank_transactions
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170506212014_add_account_registrar_fk.rb:
--------------------------------------------------------------------------------
1 | class AddAccountRegistrarFk < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :accounts, :registrar_id, :integer, null: false
4 | add_foreign_key :accounts, :registrars
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170509215614_remove_addresses_with_versions.rb:
--------------------------------------------------------------------------------
1 | class RemoveAddressesWithVersions < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :addresses
4 | drop_table :log_addresses
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170604182521_remove_log_pricelists.rb:
--------------------------------------------------------------------------------
1 | class RemoveLogPricelists < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :log_pricelists
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20170606133501_add_foreign_key_constraints_to_domains.rb:
--------------------------------------------------------------------------------
1 | class AddForeignKeyConstraintsToDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :domains, :registrars, name: 'domains_registrar_id_fk'
4 | add_foreign_key :domains, :contacts, column: :registrant_id, name: 'domains_registrant_id_fk'
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170606150352_change_domain_registrar_and_registrant_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeDomainRegistrarAndRegistrantToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :domains, :registrar_id, :integer, null: false
4 | change_column :domains, :registrant_id, :integer, null: false
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20170606202859_improve_contact_registrar_id.rb:
--------------------------------------------------------------------------------
1 | class ImproveContactRegistrarId < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :contacts, :registrars, name: 'contacts_registrar_id_fk'
4 | change_column :contacts, :registrar_id, :integer, null: false
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20171009080822_add_user_registrar_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddUserRegistrarIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :users, :registrars, name: 'user_registrar_id_fk'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20171009082321_drop_api_users.rb:
--------------------------------------------------------------------------------
1 | class DropApiUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :api_users
4 | drop_table :log_api_users
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20171025113808_rename_registrar_directo_handle_to_accounting_customer_code.rb:
--------------------------------------------------------------------------------
1 | class RenameRegistrarDirectoHandleToAccountingCustomerCode < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :registrars, :directo_handle, :accounting_customer_code
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20171025153841_change_registrar_accounting_customer_code_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeRegistrarAccountingCustomerCodeToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :registrars, :accounting_customer_code, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20171121233843_add_registrar_language.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarLanguage < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :language, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20171123035941_change_registrar_language_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeRegistrarLanguageToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :registrars, :language, false, 'et'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180112080312_remove_domain_contacts_contact_type.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainContactsContactType < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :domain_contacts, :contact_type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180112084221_add_domain_contacts_contact_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddDomainContactsContactIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :domain_contacts, :contacts, name: 'domain_contacts_contact_id_fk'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180112084442_add_domain_contacts_domain_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddDomainContactsDomainIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :domain_contacts, :domains, name: 'domain_contacts_domain_id_fk'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180120172042_add_domain_transfers_domain_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddDomainTransfersDomainIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :domain_transfers, :domains
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180120172649_add_domain_transfers_transfer_from_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddDomainTransfersTransferFromIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :domain_transfers, :registrars, column: :transfer_from_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180120172657_add_domain_transfers_transfer_to_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddDomainTransfersTransferToIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :domain_transfers, :registrars, column: :transfer_to_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180120182712_drop_log_domain_transfers.rb:
--------------------------------------------------------------------------------
1 | class DropLogDomainTransfers < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :log_domain_transfers
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180120183441_remove_domain_transfers_paper_trail.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainTransfersPaperTrail < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :domain_transfers, :creator_str, :string
4 | remove_column :domain_transfers, :updator_str, :string
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20180121165304_rename_domains_auth_info_to_transfer_code.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainsAuthInfoToTransferCode < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :domains, :auth_info, :transfer_code
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180122105335_change_domains_transfer_code_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeDomainsTransferCodeToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :domains, :transfer_code, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180123154407_rename_contacts_copy_from_id_to_original_id.rb:
--------------------------------------------------------------------------------
1 | class RenameContactsCopyFromIdToOriginalId < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :contacts, :copy_from_id, :original_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180123165604_rename_domain_transfers_transfer_from_id_to_old_registrar_id.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainTransfersTransferFromIdToOldRegistrarId < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :domain_transfers, :transfer_from_id, :old_registrar_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180123170112_rename_domain_transfers_transfer_to_id_to_new_registrar_id.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainTransfersTransferToIdToNewRegistrarId < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :domain_transfers, :transfer_to_id, :new_registrar_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180125092422_change_contacts_auth_info_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeContactsAuthInfoToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :contacts, :auth_info, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180126104536_change_contacts_code_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeContactsCodeToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :contacts, :code, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180129143538_add_nameservers_domain_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddNameserversDomainIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :nameservers, :domains, name: 'nameservers_domain_id_fk'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180129232054_change_nameservers_domain_id_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeNameserversDomainIdToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :nameservers, :domain_id, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180129233223_change_nameservers_hostname_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeNameserversHostnameToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :nameservers, :hostname, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180206213435_change_epp_sessions_session_id_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeEppSessionsSessionIdToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :epp_sessions, :session_id, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180206234620_add_epp_sessions_user_id.rb:
--------------------------------------------------------------------------------
1 | class AddEppSessionsUserId < ActiveRecord::Migration[6.0]
2 | def change
3 | add_reference :epp_sessions, :user, foreign_key: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180207072139_remove_epp_sessions_data.rb:
--------------------------------------------------------------------------------
1 | class RemoveEppSessionsData < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :epp_sessions, :data, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180211011450_change_messages_registrar_id_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeMessagesRegistrarIdToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :messages, :registrar_id, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180211011948_add_messages_registrar_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddMessagesRegistrarIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :messages, :registrars, name: 'messages_registrar_id_fk'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180212123810_remove_epp_sessions_registrar_id.rb:
--------------------------------------------------------------------------------
1 | class RemoveEppSessionsRegistrarId < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :epp_sessions, :registrar_id, :integer
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180212154731_remove_epp_sessions_session_id_unique_index.rb:
--------------------------------------------------------------------------------
1 | class RemoveEppSessionsSessionIdUniqueIndex < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_index :epp_sessions, name: :index_epp_sessions_on_session_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180213183818_change_epp_sessions_user_id_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeEppSessionsUserIdToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :epp_sessions, :user_id, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180214213743_change_messages_body_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeMessagesBodyToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :messages, :body, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180218004148_change_messages_attached_obj_id_type_to_int.rb:
--------------------------------------------------------------------------------
1 | class ChangeMessagesAttachedObjIdTypeToInt < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :messages, :attached_obj_id, 'integer USING attached_obj_id::integer'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180228055259_add_registrars_vat_rate.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarsVatRate < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :vat_rate, :decimal, precision: 4, scale: 3
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180228064342_rename_invoices_vat_prc_to_vat_rate.rb:
--------------------------------------------------------------------------------
1 | class RenameInvoicesVatPrcToVatRate < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :invoices, :vat_prc, :vat_rate
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180228070102_change_invoices_vat_rate_type.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoicesVatRateType < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :invoices, :vat_rate, :decimal, precision: 4, scale: 3
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180228070431_change_invoice_vat_rate_to_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoiceVatRateToNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoices, :vat_rate, true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180228074442_remove_registrars_vat.rb:
--------------------------------------------------------------------------------
1 | class RemoveRegistrarsVat < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :registrars, :vat, :boolean
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306180401_remove_people.rb:
--------------------------------------------------------------------------------
1 | class RemovePeople < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :people
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306181538_remove_countries.rb:
--------------------------------------------------------------------------------
1 | class RemoveCountries < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :countries
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306181554_remove_log_countries.rb:
--------------------------------------------------------------------------------
1 | class RemoveLogCountries < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :log_countries
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306181911_remove_data_migrations.rb:
--------------------------------------------------------------------------------
1 | class RemoveDataMigrations < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :data_migrations
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306182456_remove_cached_nameservers.rb:
--------------------------------------------------------------------------------
1 | class RemoveCachedNameservers < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :cached_nameservers
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306182758_remove_contact_statuses.rb:
--------------------------------------------------------------------------------
1 | class RemoveContactStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :contact_statuses
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306182941_remove_log_contact_statuses.rb:
--------------------------------------------------------------------------------
1 | class RemoveLogContactStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :log_contact_statuses
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306183540_remove_domain_statuses.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :domain_statuses
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180306183549_remove_log_domain_statuses.rb:
--------------------------------------------------------------------------------
1 | class RemoveLogDomainStatuses < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :log_domain_statuses if table_exists?(:log_domain_statuses)
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180308123240_remove_registrar_billing_address.rb:
--------------------------------------------------------------------------------
1 | class RemoveRegistrarBillingAddress < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :registrars, :billing_address
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180309053921_remove_registrars_indexes.rb:
--------------------------------------------------------------------------------
1 | class RemoveRegistrarsIndexes < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_index :registrars, name: :index_registrars_on_code
4 | remove_index :registrars, name: :index_registrars_on_legacy_id
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20180310142630_remove_invoices_invoice_type.rb:
--------------------------------------------------------------------------------
1 | class RemoveInvoicesInvoiceType < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :invoices, :invoice_type, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180313090437_rename_invoices_sum_cache_to_total.rb:
--------------------------------------------------------------------------------
1 | class RenameInvoicesSumCacheToTotal < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :invoices, :sum_cache, :total
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180313124751_change_invoices_total_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoicesTotalToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoices, :total, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180314122722_add_invoices_buyer_vat_no.rb:
--------------------------------------------------------------------------------
1 | class AddInvoicesBuyerVatNo < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :invoices, :buyer_vat_no, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180327151906_remove_domains_valid_from.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainsValidFrom < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :domains, :valid_from, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180331200125_change_domains_valid_to_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeDomainsValidToToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :domains, :valid_to, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180422154642_rename_domains_statuses_backup_to_statuses_before_force_delete.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainsStatusesBackupToStatusesBeforeForceDelete < ActiveRecord::Migration[6.0]
2 | def change
3 | # rename_column :domains, :statuses_backup, :statuses_before_force_delete
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180612042234_enable_pgcrypto_ext.rb:
--------------------------------------------------------------------------------
1 | class EnablePgcryptoExt < ActiveRecord::Migration[6.0]
2 | def change
3 | enable_extension 'pgcrypto'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180612042625_add_uuid_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddUuidToContacts < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :uuid, :uuid, default: 'gen_random_uuid()'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180612042953_add_uuid_to_domains.rb:
--------------------------------------------------------------------------------
1 | class AddUuidToDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :domains, :uuid, :uuid, default: 'gen_random_uuid()'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180613030330_change_contacts_and_domains_uuid_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeContactsAndDomainsUuidToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :contacts, :uuid, false
4 | change_column_null :domains, :uuid, false
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20180627115124_remove_foreign_key_constraint_from_contact_request.rb:
--------------------------------------------------------------------------------
1 | class RemoveForeignKeyConstraintFromContactRequest < ActiveRecord::Migration[5.0]
2 | def change
3 | # remove_foreign_key :contact_requests, :whois_records
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180713154915_rename_users_password_to_plain_text_password.rb:
--------------------------------------------------------------------------------
1 | class RenameUsersPasswordToPlainTextPassword < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :users, :password, :plain_text_password
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180801114403_change_contacts_name_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeContactsNameToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :contacts, :name, false
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20180808064402_add_registry_lock_time_column.rb:
--------------------------------------------------------------------------------
1 | class AddRegistryLockTimeColumn < ActiveRecord::Migration[6.0]
2 | def change
3 | change_table(:domains) do |t|
4 | t.column :locked_by_registrant_at, :datetime, null: true
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20180816123540_change_contacts_email_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeContactsEmailToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :contacts, :email, false
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20180823161237_rename_messages_to_notifications.rb:
--------------------------------------------------------------------------------
1 | class RenameMessagesToNotifications < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :messages, :notifications
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180823163548_rename_log_messages_to_log_notifications.rb:
--------------------------------------------------------------------------------
1 | class RenameLogMessagesToLogNotifications < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :log_messages, :log_notifications
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180823174331_rename_notifications_body_to_text.rb:
--------------------------------------------------------------------------------
1 | class RenameNotificationsBodyToText < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :notifications, :body, :text
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180823212823_rename_notifications_queued_to_read.rb:
--------------------------------------------------------------------------------
1 | class RenameNotificationsQueuedToRead < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :notifications, :queued, :read
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180824102834_change_notifications_read_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeNotificationsReadToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :notifications, :read, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180824215326_create_actions.rb:
--------------------------------------------------------------------------------
1 | class CreateActions < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :actions do |t|
4 | t.belongs_to :user, foreign_key: true
5 | t.string :operation
6 | t.datetime :created_at
7 | end
8 | end
9 | end
--------------------------------------------------------------------------------
/db/migrate/20180825193437_change_actions_operation_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeActionsOperationToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :actions, :operation, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180825232819_add_contact_id_to_actions.rb:
--------------------------------------------------------------------------------
1 | class AddContactIdToActions < ActiveRecord::Migration[6.0]
2 | def change
3 | add_reference :actions, :contact, foreign_key: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180826162821_add_action_id_to_notifications.rb:
--------------------------------------------------------------------------------
1 | class AddActionIdToNotifications < ActiveRecord::Migration[6.0]
2 | def change
3 | add_reference :notifications, :action, foreign_key: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181001090536_change_reference_no_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeReferenceNoToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :registrars, :reference_no, false
4 | change_column_null :invoices, :reference_no, false
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20181002090319_remove_domain_status_field.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainStatusField < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :domains, :status
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017092829_rename_invoice_items_amount_to_quantity.rb:
--------------------------------------------------------------------------------
1 | class RenameInvoiceItemsAmountToQuantity < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :invoice_items, :amount, :quantity
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017153658_add_invoice_items_invoice_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddInvoiceItemsInvoiceIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :invoice_items, :invoices, name: 'invoice_items_invoice_id_fk'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017153812_change_invoice_items_invoice_id_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoiceItemsInvoiceIdToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoice_items, :invoice_id, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017153935_change_invoice_items_quantity_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoiceItemsQuantityToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoice_items, :quantity, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017154038_change_invoice_items_unit_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoiceItemsUnitToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoice_items, :unit, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017154143_change_invoice_items_price_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoiceItemsPriceToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoice_items, :price, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181017205123_change_invoices_due_date_to_date.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoicesDueDateToDate < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :invoices, :due_date, :date, null: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181022100114_add_invoices_issue_date.rb:
--------------------------------------------------------------------------------
1 | class AddInvoicesIssueDate < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :invoices, :issue_date, :date
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181102124618_remove_whois_records_body.rb:
--------------------------------------------------------------------------------
1 | class RemoveWhoisRecordsBody < ActiveRecord::Migration[5.2]
2 | def up
3 | # remove_column :whois_records, :body
4 | end
5 |
6 | def down
7 | # add_column :whois_records, :body, :text
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20181108154921_add_contacts_disclosed_attributes.rb:
--------------------------------------------------------------------------------
1 | class AddContactsDisclosedAttributes < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :contacts, :disclosed_attributes, :string, array: true, default: [], null: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181129150515_create_released_domains.rb:
--------------------------------------------------------------------------------
1 | class CreateReleasedDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | create_table :released_domains do |t|
4 | t.string :name, null: false
5 | t.boolean :at_auction, default: false, null: false
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/db/migrate/20181212145456_change_auctions_uuid_default.rb:
--------------------------------------------------------------------------------
1 | class ChangeAuctionsUuidDefault < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_default :auctions, :uuid, nil
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181212145914_change_auctions_uuid_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeAuctionsUuidToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :auctions, :uuid, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181213113115_rename_released_domains_to_domain_names.rb:
--------------------------------------------------------------------------------
1 | class RenameReleasedDomainsToDomainNames < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :released_domains, :domain_names
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181217144701_rename_domain_names_to_auctionable_domains.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainNamesToAuctionableDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_table :domain_names, :auctionable_domains
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181217144845_remove_auctionable_domains_at_auction.rb:
--------------------------------------------------------------------------------
1 | class RemoveAuctionableDomainsAtAuction < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :auctionable_domains, :at_auction
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181220094738_remove_auctionable_domains.rb:
--------------------------------------------------------------------------------
1 | class RemoveAuctionableDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :auctionable_domains
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181220095053_remove_auctions_not_null_constraints.rb:
--------------------------------------------------------------------------------
1 | class RemoveAuctionsNotNullConstraints < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :auctions, :uuid, true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181223153407_add_auctions_registration_code.rb:
--------------------------------------------------------------------------------
1 | class AddAuctionsRegistrationCode < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :auctions, :registration_code, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20181226211337_change_auctions_status.rb:
--------------------------------------------------------------------------------
1 | class ChangeAuctionsStatus < ActiveRecord::Migration[6.0]
2 | disable_ddl_transaction!
3 |
4 | def change
5 | execute <<-SQL
6 | ALTER TYPE auction_status ADD VALUE 'domain_registered' AFTER 'payment_received';
7 | SQL
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20181227155537_add_payment_not_received_to_auction_status.rb:
--------------------------------------------------------------------------------
1 | class AddPaymentNotReceivedToAuctionStatus < ActiveRecord::Migration[6.0]
2 | disable_ddl_transaction!
3 |
4 | def change
5 | execute <<-SQL
6 | ALTER TYPE auction_status ADD VALUE 'payment_not_received' AFTER 'payment_received';
7 | SQL
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20181227172042_change_auctions_status_to_string.rb:
--------------------------------------------------------------------------------
1 | class ChangeAuctionsStatusToString < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :auctions, :status, :string
4 |
5 | execute <<-SQL
6 | DROP type auction_status;
7 | SQL
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20190102114702_change_auctions_uuid.rb:
--------------------------------------------------------------------------------
1 | class ChangeAuctionsUuid < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :auctions, :uuid, :uuid, null: false, default: 'gen_random_uuid()'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190102144032_change_reserved_domains_password_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeReservedDomainsPasswordToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :reserved_domains, :password, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190209150026_drop_business_registry_caches.rb:
--------------------------------------------------------------------------------
1 | class DropBusinessRegistryCaches < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :business_registry_caches
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20190302111152_add_object_changes_to_versions.rb:
--------------------------------------------------------------------------------
1 | class AddObjectChangesToVersions < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :versions, :object_changes, :jsonb
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190311111718_remove_invoices_paid_at.rb:
--------------------------------------------------------------------------------
1 | class RemoveInvoicesPaidAt < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :invoices, :paid_at
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190312211614_remove_invoices_payment_term.rb:
--------------------------------------------------------------------------------
1 | class RemoveInvoicesPaymentTerm < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :invoices, :payment_term
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190315172802_change_invoices_issue_date_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoicesIssueDateToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoices, :issue_date, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190319133036_remove_domains_reserved.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainsReserved < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :domains, :reserved
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190322152123_change_domains_force_delete_at_to_date.rb:
--------------------------------------------------------------------------------
1 | class ChangeDomainsForceDeleteAtToDate < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :domains, :force_delete_at, :date
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190322152529_rename_domains_force_delete_at_to_force_delete_date.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainsForceDeleteAtToForceDeleteDate < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :domains, :force_delete_at, :force_delete_date
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190328151516_change_domains_delete_at_to_date.rb:
--------------------------------------------------------------------------------
1 | class ChangeDomainsDeleteAtToDate < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :domains, :delete_at, :date
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190328151838_rename_domains_delete_at_to_delete_date.rb:
--------------------------------------------------------------------------------
1 | class RenameDomainsDeleteAtToDeleteDate < ActiveRecord::Migration[6.0]
2 | def change
3 | rename_column :domains, :delete_at, :delete_date
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190415120246_remove_unused_columns_from_log_domains.rb:
--------------------------------------------------------------------------------
1 | class RemoveUnusedColumnsFromLogDomains < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :log_domains, :nameserver_ids
4 | remove_column :log_domains, :admin_contact_ids
5 | remove_column :log_domains, :tech_contact_ids
6 | end
7 | end
--------------------------------------------------------------------------------
/db/migrate/20190426174225_add_registrars_settings.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarsSettings < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :settings, :jsonb, null: false, default: '{}'
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20190506100655_remove_mail_templates.rb:
--------------------------------------------------------------------------------
1 | class RemoveMailTemplates < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :mail_templates
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190515113153_add_registrars_iban.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrarsIban < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :iban, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190516161439_change_invoices_vat_rate_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoicesVatRateToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoices, :vat_rate, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190520093231_change_registrars_address_state_and_zip_to_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeRegistrarsAddressStateAndZipToNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :registrars, :address_state, true
4 | change_column_null :registrars, :address_zip, true
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20190617120112_remove_depricated_versions.rb:
--------------------------------------------------------------------------------
1 | class RemoveDepricatedVersions < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :depricated_versions
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190617121716_remove_dnskeys_delegation_signer_id.rb:
--------------------------------------------------------------------------------
1 | class RemoveDnskeysDelegationSignerId < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :dnskeys, :delegation_signer_id
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20190617121949_remove_delegation_signers.rb:
--------------------------------------------------------------------------------
1 | class RemoveDelegationSigners < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :delegation_signers
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20190617122505_remove_banklink_transactions.rb:
--------------------------------------------------------------------------------
1 | class RemoveBanklinkTransactions < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :banklink_transactions
4 | end
5 | end
--------------------------------------------------------------------------------
/db/migrate/20190811184334_remove_invoices_seller_id.rb:
--------------------------------------------------------------------------------
1 | class RemoveInvoicesSellerId < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :invoices, :seller_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190811195814_change_invoices_number_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoicesNumberToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :invoices, :number, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190811202347_add_invoices_buyer_id_fk.rb:
--------------------------------------------------------------------------------
1 | class AddInvoicesBuyerIdFk < ActiveRecord::Migration[6.0]
2 | def change
3 | add_foreign_key :invoices, :registrars, column: :buyer_id
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20190917114907_drop_keyrelays.rb:
--------------------------------------------------------------------------------
1 | class DropKeyrelays < ActiveRecord::Migration[6.0]
2 | def change
3 | drop_table :keyrelays
4 | drop_table :log_keyrelays
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20191004095229_change_reserved_domains_name_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeReservedDomainsNameToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :reserved_domains, :name, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191004105643_change_blocked_domains_name_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeBlockedDomainsNameToNotNull < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :blocked_domains, :name, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191004110234_remove_blocked_domains_name_index.rb:
--------------------------------------------------------------------------------
1 | class RemoveBlockedDomainsNameIndex < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_index :blocked_domains, name: 'index_blocked_domains_on_name'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191005162437_add_constraints_part_ii.rb:
--------------------------------------------------------------------------------
1 | class AddConstraintsPartIi < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :white_ips, :registrar_id, false
4 | add_foreign_key :white_ips, :registrars
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20191007123000_add_constraints_part_iii.rb:
--------------------------------------------------------------------------------
1 | class AddConstraintsPartIii < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column_null :domains, :name, false
4 | change_column_null :domains, :name_puny, false
5 | change_column_null :domains, :name_dirty, false
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20191008024334_remove_csr_crt_from_users.rb:
--------------------------------------------------------------------------------
1 | class RemoveCsrCrtFromUsers < ActiveRecord::Migration[6.0]
2 | def change
3 | remove_column :users, :csr, :text
4 | remove_column :users, :crt, :text
5 | end
6 | end
--------------------------------------------------------------------------------
/db/migrate/20191203083643_add_force_delete_start_to_domains.rb:
--------------------------------------------------------------------------------
1 | class AddForceDeleteStartToDomains < ActiveRecord::Migration[5.0]
2 | def change
3 | add_column :domains, :force_delete_start, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191206183853_remove_registrant_verifications_domain_name.rb:
--------------------------------------------------------------------------------
1 | class RemoveRegistrantVerificationsDomainName < ActiveRecord::Migration[5.0]
2 | def change
3 | remove_column :registrant_verifications, :domain_name
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191212133136_remove_fill_ident_country_function.rb:
--------------------------------------------------------------------------------
1 | class RemoveFillIdentCountryFunction < ActiveRecord::Migration[5.0]
2 | def change
3 | execute <<~SQL
4 | DROP FUNCTION fill_ident_country();
5 | SQL
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20191217013225_remove_domains_registered_at.rb:
--------------------------------------------------------------------------------
1 | class RemoveDomainsRegisteredAt < ActiveRecord::Migration[5.0]
2 | def change
3 | remove_column :domains, :registered_at
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191219112434_change_legal_documents_path_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeLegalDocumentsPathToNotNull < ActiveRecord::Migration[5.0]
2 | def change
3 | change_column_null :legal_documents, :path, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20191219124429_change_legal_documents_document_type_to_not_null.rb:
--------------------------------------------------------------------------------
1 | class ChangeLegalDocumentsDocumentTypeToNotNull < ActiveRecord::Migration[5.0]
2 | def change
3 | change_column_null :legal_documents, :document_type, false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200113091254_add_uuid_to_log_registrant_verification.rb:
--------------------------------------------------------------------------------
1 | class AddUuidToLogRegistrantVerification < ActiveRecord::Migration[5.0]
2 | def change
3 | change_table 'log_registrant_verifications' do |t|
4 | t.string :uuid
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20200115102202_add_force_delete_data_to_domains.rb:
--------------------------------------------------------------------------------
1 | class AddForceDeleteDataToDomains < ActiveRecord::Migration[5.0]
2 | def change
3 | add_column :domains, :force_delete_data, :hstore
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200204103125_add_e_invoice_sent_at_to_invoice.rb:
--------------------------------------------------------------------------------
1 | class AddEInvoiceSentAtToInvoice < ActiveRecord::Migration[5.0]
2 | def change
3 | add_column :invoices, :e_invoice_sent_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200417075720_add_registration_deadline_date_to_models.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrationDeadlineDateToModels < ActiveRecord::Migration[5.2]
2 | def change
3 | add_column :auctions, :registration_deadline, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200505103316_add_revoked_to_certificate.rb:
--------------------------------------------------------------------------------
1 | class AddRevokedToCertificate < ActiveRecord::Migration[5.2]
2 | def change
3 | add_column :certificates, :revoked, :boolean, null: false, default: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200505150413_add_dispute_period_in_months_to_setting.rb:
--------------------------------------------------------------------------------
1 | class AddDisputePeriodInMonthsToSetting < ActiveRecord::Migration[5.2]
2 | def change
3 | Setting.create(var: 'dispute_period_in_months', value: 36)
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200630081231_add_legal_doc_optout_to_registrar.rb:
--------------------------------------------------------------------------------
1 | class AddLegalDocOptoutToRegistrar < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :registrars, :legaldoc_optout, :boolean, null: false, default: false
4 | add_column :registrars, :legaldoc_optout_comment, :text
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20200812090409_change_setting_entry_value_to_allow_nil.rb:
--------------------------------------------------------------------------------
1 | class ChangeSettingEntryValueToAllowNil < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :setting_entries, :value, :string, null: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200902131603_change_log_domains_children_type_to_jsonb.rb:
--------------------------------------------------------------------------------
1 | class ChangeLogDomainsChildrenTypeToJsonb < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :log_domains, :children, 'jsonb USING children::jsonb'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200908131554_remove_import_file_path_from_bank_statements.rb:
--------------------------------------------------------------------------------
1 | class RemoveImportFilePathFromBankStatements < ActiveRecord::Migration[6.0]
2 | def up
3 | remove_column :bank_statements, :import_file_path
4 | end
5 |
6 | def down
7 | add_column :bank_statements, :import_file_path, :string
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20200910085157_change_invoice_item_price_scale_to_three_places.rb:
--------------------------------------------------------------------------------
1 | class ChangeInvoiceItemPriceScaleToThreePlaces < ActiveRecord::Migration[6.0]
2 | def change
3 | change_column :invoice_items, :price, :decimal, precision: 10, scale: 3
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20200914073130_add_message_id_to_contact_request.rb:
--------------------------------------------------------------------------------
1 | class AddMessageIdToContactRequest < ActiveRecord::Migration[6.0]
2 | def change
3 | # add_column :contact_requests, :message_id, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20210215101019_add_new_balance_to_account_activity.rb:
--------------------------------------------------------------------------------
1 | class AddNewBalanceToAccountActivity < ActiveRecord::Migration[6.0]
2 | def change
3 | add_column :account_activities, :new_balance, :decimal, precision: 10, scale: 2, null: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20210616112332_create_business_registry_contacts.rb:
--------------------------------------------------------------------------------
1 | class CreateBusinessRegistryContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | create_table :business_registry_contacts do |t|
4 | t.string :name
5 | t.string :registry_code
6 | t.string :status
7 |
8 | t.timestamps
9 | end
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/db/migrate/20210708131814_add_json_statuses_history_field_to_domain.rb:
--------------------------------------------------------------------------------
1 | class AddJsonStatusesHistoryFieldToDomain < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :domains, :json_statuses_history, :jsonb, if_not_exists: true
4 | add_index :domains, :json_statuses_history, using: :gin, if_not_exists: true
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20210729131100_add_field_to_user.rb:
--------------------------------------------------------------------------------
1 | class AddFieldToUser < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :users, :accreditation_date, :datetime
4 | add_column :users, :accreditation_expire_date, :datetime
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20210729134625_add_column_to_user.rb:
--------------------------------------------------------------------------------
1 | class AddColumnToUser < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :users, :uuid, :uuid, default: 'gen_random_uuid()'
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20211125181033_add_type_index_to_validation_event.rb:
--------------------------------------------------------------------------------
1 | class AddTypeIndexToValidationEvent < ActiveRecord::Migration[6.1]
2 | disable_ddl_transaction!
3 |
4 | def change
5 | add_index :validation_events, :validation_eventable_id, :algorithm => :concurrently
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20211125184334_add_conc_index_to_contact.rb:
--------------------------------------------------------------------------------
1 | class AddConcIndexToContact < ActiveRecord::Migration[6.1]
2 | disable_ddl_transaction!
3 |
4 | def change
5 | add_index :contacts, :email, :algorithm => :concurrently
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/db/migrate/20211126085139_add_index_to_json_validation_event.rb:
--------------------------------------------------------------------------------
1 | class AddIndexToJsonValidationEvent < ActiveRecord::Migration[6.1]
2 | def change
3 | add_index :validation_events, :event_data, :using => :gin
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20211231113934_add_validation_datetime_to_dnskey.rb:
--------------------------------------------------------------------------------
1 | class AddValidationDatetimeToDnskey < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :dnskeys, :validation_datetime, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220113201642_add_email_history_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddEmailHistoryToContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :contacts, :email_history, :string
4 |
5 | reversible do |dir|
6 | dir.up { Contact.update_all('email_history = email') }
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20220113220809_add_email_history_to_registrars.rb:
--------------------------------------------------------------------------------
1 | class AddEmailHistoryToRegistrars < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :registrars, :email_history, :string
4 |
5 | reversible do |dir|
6 | dir.up { Registrar.update_all('email_history = email') }
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20220124105717_add_payment_link_to_invoice.rb:
--------------------------------------------------------------------------------
1 | class AddPaymentLinkToInvoice < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :invoices, :payment_link, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220228093211_add_failed_validation_reasong_to_dnskey.rb:
--------------------------------------------------------------------------------
1 | class AddFailedValidationReasongToDnskey < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :dnskeys, :failed_validation_reason, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220316140727_add_bulk_actions.rb:
--------------------------------------------------------------------------------
1 | class AddBulkActions < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :actions, :bulk_action_id, :integer, default: nil
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220406085500_remove_que_jobs.rb:
--------------------------------------------------------------------------------
1 | class RemoveQueJobs < ActiveRecord::Migration[6.1]
2 | def change
3 | # drop_table :que_jobs
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220412130856_add_type_to_auction.rb:
--------------------------------------------------------------------------------
1 | class AddTypeToAuction < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :auctions, :platform, :integer, null: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220413073315_remove_email_address_verifications.rb:
--------------------------------------------------------------------------------
1 | class RemoveEmailAddressVerifications < ActiveRecord::Migration[6.1]
2 | def change
3 | # drop_table :email_address_verifications
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220413084536_remove_email_addresses_validations.rb:
--------------------------------------------------------------------------------
1 | class RemoveEmailAddressesValidations < ActiveRecord::Migration[6.1]
2 | def change
3 | # drop_table :email_addresses_validations
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220413084748_remove_email_addresses_verifications.rb:
--------------------------------------------------------------------------------
1 | class RemoveEmailAddressesVerifications < ActiveRecord::Migration[6.1]
2 | def change
3 | # drop_table :email_addresses_verifications
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220504090512_remove_contact_code_cache_from_domain_contacts.rb:
--------------------------------------------------------------------------------
1 | class RemoveContactCodeCacheFromDomainContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | remove_column :domain_contacts, :contact_code_cache
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220524130709_remove_statuses_before_force_delete_from_domains.rb:
--------------------------------------------------------------------------------
1 | class RemoveStatusesBeforeForceDeleteFromDomains < ActiveRecord::Migration[6.1]
2 | def change
3 | remove_column :domains, :statuses_before_force_delete if column_exists? :domains, :statuses_before_force_delete
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220701113409_change_notification_text_type_to_text.rb:
--------------------------------------------------------------------------------
1 | class ChangeNotificationTextTypeToText < ActiveRecord::Migration[6.1]
2 | def change
3 | change_column :notifications, :text, :text
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220715145808_add_registrant_publishable_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddRegistrantPublishableToContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :contacts, :registrant_publishable, :boolean, default: false
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20220818075833_add_monthly_invoice_type_columns.rb:
--------------------------------------------------------------------------------
1 | class AddMonthlyInvoiceTypeColumns < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :invoices, :monthly_invoice, :boolean, default: false
4 | add_column :invoices, :metadata, :jsonb
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/db/migrate/20221011061840_add_sent_at_to_invoices.rb:
--------------------------------------------------------------------------------
1 | class AddSentAtToInvoices < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :invoices, :sent_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20230707084741_add_committed_to_white_ips.rb:
--------------------------------------------------------------------------------
1 | class AddCommittedToWhiteIps < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :white_ips, :committed, :boolean, default: true
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20230710120154_add_checked_company_at_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddCheckedCompanyAtToContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :contacts, :checked_company_at, :datetime
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20230711083811_add_company_register_status_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddCompanyRegisterStatusToContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :contacts, :company_register_status, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20241015071505_add_verification_id_to_contacts.rb:
--------------------------------------------------------------------------------
1 | class AddVerificationIdToContacts < ActiveRecord::Migration[6.1]
2 | def change
3 | add_column :contacts, :verification_id, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/doc/repp_doc.md:
--------------------------------------------------------------------------------
1 | # REPP integration specification
2 |
3 | REST EPP API documentation is available on a [REPP GitHub page](https://internetee.github.io/repp-apidoc/).
4 |
--------------------------------------------------------------------------------
/lib/application_service.rb:
--------------------------------------------------------------------------------
1 | class ApplicationService
2 | def self.call(*args, &block)
3 | new(*args, &block).call
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/lib/core_monkey_patches/array.rb:
--------------------------------------------------------------------------------
1 | class Array
2 | def include_any?(*args)
3 | (self & args).any?
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/lib/core_monkey_patches/hash.rb:
--------------------------------------------------------------------------------
1 | class Hash
2 | def select_keys(*args)
3 | select { |k, _| args.include?(k) }.map { |_k, v| v }
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/lib/deserializers/xml/contact_create.rb:
--------------------------------------------------------------------------------
1 | require 'deserializers/xml/legal_document'
2 | require 'deserializers/xml/ident'
3 | require 'deserializers/xml/contact'
4 |
5 | module Deserializers
6 | module Xml
7 | class ContactCreate < ContactUpdate
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/lib/serializers/registrant_api/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/lib/serializers/registrant_api/.DS_Store
--------------------------------------------------------------------------------
/lib/tasks/bootstrap.rake:
--------------------------------------------------------------------------------
1 | desc 'Bootstraps production-like environment'
2 | task bootstrap: :environment do
3 | AdminUser.create!(
4 | username: 'admin',
5 | email: 'admin@domain.tld',
6 | password: 'adminadmin',
7 | password_confirmation: 'adminadmin',
8 | country_code: 'US',
9 | roles: ['admin']
10 | )
11 | end
12 |
--------------------------------------------------------------------------------
/lib/tasks/check_closed_disputes.rake:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | namespace :disputes do
4 | desc 'Check closed disputes with expired_at in the Past'
5 | task check_closed: :environment do
6 | DisputeStatusUpdateJob.perform_now(include_closed: true)
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/lib/tasks/data_migrations/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/lib/tasks/data_migrations/.keep
--------------------------------------------------------------------------------
/lib/tasks/epp/clear_expired_sessions.rake:
--------------------------------------------------------------------------------
1 | namespace :epp do
2 | desc 'Clear expired EPP sessions'
3 |
4 | task clear_expired_sessions: :environment do
5 | Epp::ExpiredSessions.new(EppSession.expired).clear
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/lib/tasks/outzone_invalid_email_domains.rake:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | desc 'Rake task run outzone setter task for force deleted domains by invalid emails'
4 |
5 | task outzone_invalid_email_domains: :environment do
6 | OutzoneInvalidEmailDomainsJob.perform_later
7 | end
8 |
--------------------------------------------------------------------------------
/lib/validators/iso8601_validator.rb:
--------------------------------------------------------------------------------
1 | class Iso8601Validator < ActiveModel::EachValidator
2 | def validate_each(record, attribute, value)
3 | record.errors.add(attribute, :invalid_iso8601_date) if options[:date_only] && value !~ date_format
4 | end
5 |
6 | private
7 |
8 | def date_format
9 | /\d{4}-\d{2}-\d{2}/
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/public/eis-logo-black-et.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/public/eis-logo-black-et.png
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/public/favicon.ico
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2 | #
3 | # To ban all spiders from the entire site uncomment the next two lines:
4 | # User-agent: *
5 | # Disallow: /
6 |
--------------------------------------------------------------------------------
/test/fixtures/auctions.yml:
--------------------------------------------------------------------------------
1 | one:
2 | domain: auction.test
3 | status: <%= Auction.statuses[:no_bids] %>
4 | uuid: 1b3ee442-e8fe-4922-9492-8fcb9dccc69c
5 |
6 | idn:
7 | domain: "püramiid.test"
8 | status: <%= Auction.statuses[:no_bids] %>
9 | uuid: d05455cd-67c9-431e-bdbc-03487da9cbfa
10 |
--------------------------------------------------------------------------------
/test/fixtures/bank_statements.yml:
--------------------------------------------------------------------------------
1 | one:
2 | bank_code: '1234'
3 | iban: GB33BUKB20201555555555
--------------------------------------------------------------------------------
/test/fixtures/bank_transactions.yml:
--------------------------------------------------------------------------------
1 | one:
2 | sum: 1
3 | currency: EUR
4 | description: Order nr 1 from registrar 1234567 second number 2345678
5 | iban: US75512108001245126199
6 |
--------------------------------------------------------------------------------
/test/fixtures/blocked_domains.yml:
--------------------------------------------------------------------------------
1 | one:
2 | name: blocked.test
3 | idn:
4 | name: blockedäöüõ.test
5 |
--------------------------------------------------------------------------------
/test/fixtures/contact_requests.yml:
--------------------------------------------------------------------------------
1 | new:
2 | whois_record_id: 1
3 | email: aaa@bbb.com
4 | name: Testname
5 | status: new
6 | secret: somesecret
7 | valid_to: 2010-07-05
8 |
9 |
--------------------------------------------------------------------------------
/test/fixtures/dns/zones.yml:
--------------------------------------------------------------------------------
1 | # https://github.com/rails/rails/issues/9516 requires this file to be under "dns" folder
2 |
3 | one:
4 | origin: test
5 | ttl: 1
6 | refresh: 1
7 | retry: 1
8 | expire: 1
9 | minimum_ttl: 1
10 | email: admin@registry.test
11 | master_nameserver: ns.test
12 |
--------------------------------------------------------------------------------
/test/fixtures/domain_transfers.yml:
--------------------------------------------------------------------------------
1 | shop:
2 | status: serverApproved
3 | transfer_requested_at: 2010-07-05
4 | transferred_at: 2010-07-05
5 | domain: shop
6 | old_registrar: bestnames
7 | new_registrar: goodnames
8 |
--------------------------------------------------------------------------------
/test/fixtures/epp_sessions.yml:
--------------------------------------------------------------------------------
1 | api_bestnames:
2 | session_id: api_bestnames
3 | user: api_bestnames
4 |
5 | api_goodnames:
6 | session_id: api_goodnames
7 | user: api_goodnames
8 |
--------------------------------------------------------------------------------
/test/fixtures/files/accounts.csv:
--------------------------------------------------------------------------------
1 | Id,Balance,Currency,Registrar
2 | 112846265,100.0,EUR,Best Names
3 | 298486374,100.0,EUR,Good Names
4 | 597560588,0.0,EUR,Not in use
5 |
--------------------------------------------------------------------------------
/test/fixtures/files/api_users.csv:
--------------------------------------------------------------------------------
1 | Username,Password,Identity Code,Role,Active,Accredited,Accreditation Expire Date,Created,Updated
2 | test_bestnames,testtest,1234,super,true,false,,2010-07-05 10:30:00 +0300,2010-07-05 10:30:00 +0300
3 | test_bestnames_epp,testtest,,epp,true,false,,2010-07-05 10:30:00 +0300,2010-07-05 10:30:00 +0300
4 |
--------------------------------------------------------------------------------
/test/fixtures/files/auction_domains_list.csv:
--------------------------------------------------------------------------------
1 | name
2 | tere.test
3 | chao.test
4 |
--------------------------------------------------------------------------------
/test/fixtures/files/auction_domains_list_with_invalid_item.csv:
--------------------------------------------------------------------------------
1 | name
2 | tere.test
3 | chao.test
4 | cha.chacha
5 |
--------------------------------------------------------------------------------
/test/fixtures/files/contact_versions.csv:
--------------------------------------------------------------------------------
1 | Name,ID,Ident,Registrar,Action,Created at
2 | ,test_code,[ ],Best Names,update,2018-04-23 15:50:48
3 | ,,[ ],,update,2010-07-04 21:00:00
4 |
--------------------------------------------------------------------------------
/test/fixtures/files/contacts.csv:
--------------------------------------------------------------------------------
1 | Name,ID,Ident,E-mail,Created at,Registrar,Phone
2 | Acme Ltd,acme-ltd-001,1234567 [US org],acme@outlook.test,2010-07-05 07:30:00,Best Names,+555.555
3 |
--------------------------------------------------------------------------------
/test/fixtures/files/invalid_domains_for_ns_replacement.csv:
--------------------------------------------------------------------------------
1 | shop.test
2 |
--------------------------------------------------------------------------------
/test/fixtures/files/invoices.csv:
--------------------------------------------------------------------------------
1 | Number,Buyer,Due Date,Receipt Date,Issue Date,Total,Currency,Seller Name
2 | 2,Best Names,2010-07-06,Unpaid,2010-07-05,16.5,EUR,Seller Ltd
3 | 1,Best Names,2010-07-06,2010-07-05,2010-07-05,16.5,EUR,Seller Ltd
4 |
--------------------------------------------------------------------------------
/test/fixtures/files/keystore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/keystore.p12
--------------------------------------------------------------------------------
/test/fixtures/files/legaldoc.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/legaldoc.pdf
--------------------------------------------------------------------------------
/test/fixtures/files/mass_actions/invalid_mass_force_delete_list.csv:
--------------------------------------------------------------------------------
1 | domain_name,delete_reason
2 | sh\á;[]c'
3 |
--------------------------------------------------------------------------------
/test/fixtures/files/mass_actions/valid_mass_force_delete_list.csv:
--------------------------------------------------------------------------------
1 | domain_name,delete_reason
2 | shop.test,ENTITY_BURIED
3 | airport.test,INVALID_PHONE
4 | library.test,INVALID_EMAIL
5 | nonexistant.test,ENTITY_BURIED
6 |
--------------------------------------------------------------------------------
/test/fixtures/files/schemas/abcde-1.1.xsd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/schemas/abcde-1.1.xsd
--------------------------------------------------------------------------------
/test/fixtures/files/schemas/abcde-1.2.xsd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/schemas/abcde-1.2.xsd
--------------------------------------------------------------------------------
/test/fixtures/files/schemas/abcde-fghij-1.1.xsd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/schemas/abcde-fghij-1.1.xsd
--------------------------------------------------------------------------------
/test/fixtures/files/schemas/abcde-fghij-1.2.xsd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/schemas/abcde-fghij-1.2.xsd
--------------------------------------------------------------------------------
/test/fixtures/files/schemas/abcde-fghij-1.3.xsd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/schemas/abcde-fghij-1.3.xsd
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/certs/ca.srl:
--------------------------------------------------------------------------------
1 | 8728BF086E9B1CE5
2 |
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/crlnumber:
--------------------------------------------------------------------------------
1 | 1000
2 |
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/index.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/test/fixtures/files/test_ca/index.txt
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/prepare_root_ca.sh:
--------------------------------------------------------------------------------
1 | # Prepare required files
2 | touch index.txt
3 | echo 1000 > serial
4 | echo 1000 > crlnumber
5 |
6 | # Generate Root CA.
7 | openssl genrsa -aes256 -out private/ca.key.pem 4096
8 | openssl req -config openssl.cnf -new -x509 -days 365 -key private/ca.key.pem -sha256 -extensions v3_ca -out certs/ca.crt.pem
9 |
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/serial:
--------------------------------------------------------------------------------
1 | 1000
2 |
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/server.csr.cnf:
--------------------------------------------------------------------------------
1 | [req]
2 | default_bits = 2048
3 | prompt = no
4 | default_md = sha256
5 | distinguished_name = dn
6 |
7 | [dn]
8 | C=EE
9 | ST=Harjumaa
10 | L=Tallinn
11 | O=EestiInternetiSA
12 | OU=Arendus
13 | emailAddress=hello@internet.ee
14 | CN = *.test
15 |
--------------------------------------------------------------------------------
/test/fixtures/files/test_ca/v3.ext:
--------------------------------------------------------------------------------
1 | authorityKeyIdentifier=keyid,issuer
2 | basicConstraints=CA:FALSE
3 | keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
4 | subjectAltName = @alt_names
5 |
6 | [alt_names]
7 | DNS.1 = test
8 | DNS.2 = registry.test
9 |
--------------------------------------------------------------------------------
/test/fixtures/files/valid_domains_for_ns_replacement.csv:
--------------------------------------------------------------------------------
1 | Domain
2 | shop.test
3 |
--------------------------------------------------------------------------------
/test/fixtures/files/valid_domains_for_transfer.csv:
--------------------------------------------------------------------------------
1 | Domain,Transfer code,Registrant name,Registrant code,Date of expiry
2 | shop.test,65078d5,whatever,whatever,2010-07-05
3 |
--------------------------------------------------------------------------------
/test/fixtures/files/white_ips.csv:
--------------------------------------------------------------------------------
1 | IPv4,IPv6,Interfaces,Created,Updated
2 | 127.0.0.1,,"REGISTRAR, API",2010-07-05 10:30:00 +0300,2010-07-05 10:30:00 +0300
3 | ,2001:0db8:85a3:0000:0000:8a2e:0370:7334,"REGISTRAR, API",2010-07-05 10:30:00 +0300,2010-07-05 10:30:00 +0300
4 |
--------------------------------------------------------------------------------
/test/fixtures/invoice_items.yml:
--------------------------------------------------------------------------------
1 | one:
2 | description: Acme services
3 | price: 5
4 | quantity: 1
5 | unit: pc
6 | invoice: one
7 |
8 | two:
9 | description: Acme services
10 | price: 5
11 | quantity: 1
12 | unit: pc
13 | invoice: unpaid
14 |
--------------------------------------------------------------------------------
/test/fixtures/legal_documents.yml:
--------------------------------------------------------------------------------
1 | one:
2 | documentable: shop (Domain)
3 | document_type: pdf
4 | path: some
5 |
--------------------------------------------------------------------------------
/test/fixtures/log_contacts.yml:
--------------------------------------------------------------------------------
1 | one:
2 | item_id: <%= ActiveRecord::FixtureSet.identify(:john) %>
3 | item_type: Contact
4 | event: update
5 | created_at: <%= Time.zone.parse('2010-07-05') %>
--------------------------------------------------------------------------------
/test/fixtures/registrant_verifications.yml:
--------------------------------------------------------------------------------
1 | one:
2 | action: confirmed
3 | action_type: domain_delete
4 | created_at: <%= Time.zone.parse('2010-07-05') %>
5 | domain: shop
6 | verification_token: 1234
7 |
--------------------------------------------------------------------------------
/test/fixtures/reserved_domains.yml:
--------------------------------------------------------------------------------
1 | one:
2 | name: reserved.test
3 | password: reserved-001
4 |
--------------------------------------------------------------------------------
/test/fixtures/white_ips.yml:
--------------------------------------------------------------------------------
1 | one:
2 | registrar: bestnames
3 | ipv4: 127.0.0.1
4 | interfaces:
5 | - <%= WhiteIp::REGISTRAR %>
6 | - <%= WhiteIp::API %>
7 |
8 | two:
9 | registrar: bestnames
10 | ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
11 | interfaces:
12 | - <%= WhiteIp::REGISTRAR %>
13 | - <%= WhiteIp::API %>
14 |
--------------------------------------------------------------------------------
/test/fixtures/whois/records.yml:
--------------------------------------------------------------------------------
1 | one:
2 | name: shop.test
3 | json:
4 | name: shop.test
5 |
--------------------------------------------------------------------------------
/test/fixtures/whois_records.yml:
--------------------------------------------------------------------------------
1 | shop:
2 | name: shop.test
3 | domain: shop
4 | json:
5 | name: shop.test
6 |
--------------------------------------------------------------------------------
/test/integration/certificate_creation_test.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/learning/money_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class MoneyLearningTest < ActiveSupport::TestCase
4 | def test_default_currency_is_euro
5 | money = Money.from_amount(1)
6 | assert_equal Money::Currency.new(:eur), money.currency
7 | end
8 | end
--------------------------------------------------------------------------------
/test/lib/ca_crl_test.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/lib/certificate_authority_test.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/mailers/previews/contact_mailer_preview.rb:
--------------------------------------------------------------------------------
1 | class ContactMailerPreview < ActionMailer::Preview
2 | def email_changed
3 | contact = Contact.linked
4 | contact = contact.where.not(email: nil, country_code: nil, code: nil).first
5 |
6 | ContactMailer.email_changed(contact: contact, old_email: 'old@inbox.test')
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/mailers/previews/invoice_mailer_preview.rb:
--------------------------------------------------------------------------------
1 | class InvoiceMailerPreview < ActionMailer::Preview
2 | def invoice_email
3 | invoice = Invoice.first
4 | InvoiceMailer.invoice_email(invoice: invoice, recipient: 'billing@registrar.test')
5 | end
6 | end
--------------------------------------------------------------------------------
/test/models/account_activity_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class AccountActivityTest < ActiveSupport::TestCase
4 | setup do
5 | @account_activity = account_activities(:one)
6 | end
7 |
8 | def test_fixture_is_valid
9 | assert @account_activity.valid?
10 | end
11 | end
--------------------------------------------------------------------------------
/test/models/certificate_crl_test.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/models/directo_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class DirectoTest < ActiveSupport::TestCase
4 | end
5 |
--------------------------------------------------------------------------------
/test/models/domain/releasable_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class DomainReleasableTest < ActiveSupport::TestCase
4 | setup do
5 | @domain = domains(:shop)
6 | end
7 |
8 | def test_releasing_a_domain_discards_it_by_default
9 | refute Domain.release_to_auction
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/test/models/epp/response/result_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class EppResponseResultTest < ActiveSupport::TestCase
4 |
5 | end
6 |
--------------------------------------------------------------------------------
/test/models/feature_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class FeatureTest < ActiveSupport::TestCase
4 | end
5 |
--------------------------------------------------------------------------------
/test/models/iban_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class IbanTest < ActiveSupport::TestCase
4 | def test_returns_max_length
5 | assert_equal 34, Iban.max_length
6 | end
7 | end
--------------------------------------------------------------------------------
/test/services/certificates/p12_generation_test.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalight-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalight-webfont.eot
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalight-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalight-webfont.ttf
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalight-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalight-webfont.woff
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalightbold-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalightbold-webfont.eot
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalightbold-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalightbold-webfont.ttf
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalightbold-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalightbold-webfont.woff
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalightitalic-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalightitalic-webfont.eot
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalightitalic-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalightitalic-webfont.ttf
--------------------------------------------------------------------------------
/vendor/assets/fonts/etelkalightitalic-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/etelkalightitalic-webfont.woff
--------------------------------------------------------------------------------
/vendor/assets/fonts/infotexb-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/infotexb-webfont.eot
--------------------------------------------------------------------------------
/vendor/assets/fonts/infotexb-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/infotexb-webfont.ttf
--------------------------------------------------------------------------------
/vendor/assets/fonts/infotexb-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/infotexb-webfont.woff
--------------------------------------------------------------------------------
/vendor/assets/fonts/infotexm-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/infotexm-webfont.eot
--------------------------------------------------------------------------------
/vendor/assets/fonts/infotexm-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/infotexm-webfont.ttf
--------------------------------------------------------------------------------
/vendor/assets/fonts/infotexm-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/fonts/infotexm-webfont.woff
--------------------------------------------------------------------------------
/vendor/assets/stylesheets/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/internetee/registry/2bc5f5047448dfe4268d6d5609d892f2c25138b7/vendor/assets/stylesheets/.keep
--------------------------------------------------------------------------------