spina-admin-conferences-fork 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +100 -0
- data/Rakefile +40 -0
- data/app/assets/config/spina_admin_conferences_manifest.js +3 -0
- data/app/assets/javascripts/controllers/spina/admin/conferences/conference_events_form_controller.js +174 -0
- data/app/assets/javascripts/controllers/spina/admin/conferences/presentation_attachments_form_controller.js +174 -0
- data/app/assets/javascripts/controllers/spina/admin/conferences/select_options_controller.js +215 -0
- data/app/assets/javascripts/importmap.json.erb +6 -0
- data/app/assets/javascripts/spina/admin/conferences/application.js +4 -0
- data/app/assets/stylesheets/spina/admin/conferences/application.sass +3 -0
- data/app/controllers/spina/admin/conferences/application_controller.rb +23 -0
- data/app/controllers/spina/admin/conferences/conferences_controller.rb +139 -0
- data/app/controllers/spina/admin/conferences/delegates_controller.rb +114 -0
- data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +106 -0
- data/app/controllers/spina/admin/conferences/events_controller.rb +24 -0
- data/app/controllers/spina/admin/conferences/institutions_controller.rb +106 -0
- data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +104 -0
- data/app/controllers/spina/admin/conferences/presentation_attachments_controller.rb +24 -0
- data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +109 -0
- data/app/controllers/spina/admin/conferences/presentations_controller.rb +123 -0
- data/app/controllers/spina/admin/conferences/rooms_controller.rb +109 -0
- data/app/controllers/spina/admin/conferences/sessions_controller.rb +118 -0
- data/app/jobs/spina/admin/conferences/application_job.rb +11 -0
- data/app/jobs/spina/admin/conferences/delegate_import_job.rb +37 -0
- data/app/jobs/spina/admin/conferences/import_job.rb +26 -0
- data/app/jobs/spina/admin/conferences/presentation_import_job.rb +37 -0
- data/app/mailers/spina/admin/conferences/application_mailer.rb +13 -0
- data/app/models/spina/admin/conferences/application_record.rb +14 -0
- data/app/models/spina/admin/conferences/conference.rb +269 -0
- data/app/models/spina/admin/conferences/delegate.rb +89 -0
- data/app/models/spina/admin/conferences/dietary_requirement.rb +33 -0
- data/app/models/spina/admin/conferences/event.rb +85 -0
- data/app/models/spina/admin/conferences/institution.rb +46 -0
- data/app/models/spina/admin/conferences/presentation.rb +134 -0
- data/app/models/spina/admin/conferences/presentation_attachment.rb +27 -0
- data/app/models/spina/admin/conferences/presentation_attachment_type.rb +35 -0
- data/app/models/spina/admin/conferences/presentation_type.rb +60 -0
- data/app/models/spina/admin/conferences/room.rb +52 -0
- data/app/models/spina/admin/conferences/session.rb +56 -0
- data/app/models/spina/admin/conferences.rb +11 -0
- data/app/models/spina/parts/admin/conferences/date.rb +14 -0
- data/app/models/spina/parts/admin/conferences/email_address.rb +20 -0
- data/app/models/spina/parts/admin/conferences/time.rb +14 -0
- data/app/models/spina/parts/admin/conferences/url.rb +20 -0
- data/app/validators/spina/admin/conferences/conference_date_validator.rb +20 -0
- data/app/validators/spina/admin/conferences/email_address_validator.rb +28 -0
- data/app/validators/spina/admin/conferences/finish_date_validator.rb +20 -0
- data/app/validators/spina/admin/conferences/finish_time_validator.rb +20 -0
- data/app/validators/spina/admin/conferences/http_url_validator.rb +28 -0
- data/app/views/layouts/spina/admin/conferences/application.html.haml +6 -0
- data/app/views/layouts/spina/admin/conferences/conferences.html.haml +17 -0
- data/app/views/layouts/spina/admin/conferences/delegates.html.haml +8 -0
- data/app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml +8 -0
- data/app/views/layouts/spina/admin/conferences/institutions.html.haml +15 -0
- data/app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml +8 -0
- data/app/views/layouts/spina/admin/conferences/presentations.html.haml +8 -0
- data/app/views/spina/admin/conferences/application/_conferences.html.haml +12 -0
- data/app/views/spina/admin/conferences/application/_delegates.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_dietary_requirements.html.haml +9 -0
- data/app/views/spina/admin/conferences/application/_empty_list.html.haml +3 -0
- data/app/views/spina/admin/conferences/application/_errors.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_errors.turbo_stream.haml +1 -0
- data/app/views/spina/admin/conferences/application/_institutions.html.haml +10 -0
- data/app/views/spina/admin/conferences/application/_presentation_attachment_types.html.haml +10 -0
- data/app/views/spina/admin/conferences/application/_presentation_types.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_presentations.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_rooms.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_sessions.html.haml +11 -0
- data/app/views/spina/admin/conferences/conferences/_conference.html.haml +9 -0
- data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +31 -0
- data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +5 -0
- data/app/views/spina/admin/conferences/conferences/_form.html.haml +27 -0
- data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +27 -0
- data/app/views/spina/admin/conferences/conferences/_form_parts.html.haml +8 -0
- data/app/views/spina/admin/conferences/conferences/_form_structure.html.haml +19 -0
- data/app/views/spina/admin/conferences/conferences/_form_structure_item.html.haml +13 -0
- data/app/views/spina/admin/conferences/conferences/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/conferences/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/conferences/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/delegates/_delegate.html.haml +13 -0
- data/app/views/spina/admin/conferences/delegates/_form.html.haml +24 -0
- data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +53 -0
- data/app/views/spina/admin/conferences/delegates/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/delegates/index.html.haml +13 -0
- data/app/views/spina/admin/conferences/delegates/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_dietary_requirement.html.haml +6 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +8 -0
- data/app/views/spina/admin/conferences/dietary_requirements/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/dietary_requirements/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/dietary_requirements/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/events/new.js.erb +21 -0
- data/app/views/spina/admin/conferences/institutions/_form.html.haml +24 -0
- data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +29 -0
- data/app/views/spina/admin/conferences/institutions/_institution.html.haml +7 -0
- data/app/views/spina/admin/conferences/institutions/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/institutions/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/institutions/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/_presentation_attachment_type.html.haml +6 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_attachments/new.js.erb +21 -0
- data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +24 -0
- data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +16 -0
- data/app/views/spina/admin/conferences/presentation_types/_presentation_type.html.haml +8 -0
- data/app/views/spina/admin/conferences/presentation_types/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_types/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/presentation_types/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +18 -0
- data/app/views/spina/admin/conferences/presentations/_attachment_row.html.haml +2 -0
- data/app/views/spina/admin/conferences/presentations/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +55 -0
- data/app/views/spina/admin/conferences/presentations/_presentation.html.haml +11 -0
- data/app/views/spina/admin/conferences/presentations/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentations/index.html.haml +13 -0
- data/app/views/spina/admin/conferences/presentations/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/rooms/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +16 -0
- data/app/views/spina/admin/conferences/rooms/_room.html.haml +8 -0
- data/app/views/spina/admin/conferences/rooms/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/rooms/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/rooms/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/sessions/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +21 -0
- data/app/views/spina/admin/conferences/sessions/_session.html.haml +8 -0
- data/app/views/spina/admin/conferences/sessions/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/sessions/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/sessions/new.html.haml +1 -0
- data/app/views/spina/admin/hooks/conferences/_head.html.haml +7 -0
- data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +21 -0
- data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +6 -0
- data/app/views/spina/admin/parts/admin/conferences/dates/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/admin/conferences/email_addresses/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/admin/conferences/times/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/admin/conferences/urls/_form.html.haml +2 -0
- data/config/initializers/assets.rb +13 -0
- data/config/locales/en.yml +351 -0
- data/config/routes.rb +27 -0
- data/db/migrate/20180907141228_create_spina_dates.rb +11 -0
- data/db/migrate/20180907141229_create_spina_email_addresses.rb +11 -0
- data/db/migrate/20180907141230_create_spina_urls.rb +11 -0
- data/db/migrate/20180907141231_create_spina_conferences_institutions.rb +12 -0
- data/db/migrate/20180907141232_create_spina_conferences_delegates.rb +15 -0
- data/db/migrate/20180907141234_create_spina_conferences_dietary_requirements.rb +11 -0
- data/db/migrate/20180907141235_create_spina_conferences_conferences.rb +12 -0
- data/db/migrate/20180907141236_create_spina_conferences_presentation_types.rb +13 -0
- data/db/migrate/20180907141238_create_join_table_spina_conferences_conference_delegate.rb +7 -0
- data/db/migrate/20180907141239_create_join_table_spina_conferences_delegate_presentation.rb +7 -0
- data/db/migrate/20180907141240_create_join_table_spina_conferences_delegate_dietary_requirement.rb +7 -0
- data/db/migrate/20180907141242_add_type_to_spina_pages.rb +7 -0
- data/db/migrate/20180907141243_create_spina_conferences_conference_page_parts.rb +14 -0
- data/db/migrate/20180914121905_add_logo_ref_to_spina_conferences_institutions.rb +7 -0
- data/db/migrate/20180916135431_create_spina_conferences_rooms.rb +13 -0
- data/db/migrate/20180916135432_create_spina_conferences_room_possessions.rb +10 -0
- data/db/migrate/20180916135433_create_spina_conferences_room_uses.rb +10 -0
- data/db/migrate/20180916135434_create_spina_conferences_presentations.rb +15 -0
- data/db/migrate/20181009122503_create_spina_times.rb +11 -0
- data/db/migrate/20181009130631_rename_spina_page_parts.rb +10 -0
- data/db/migrate/20181012190811_rename_spina_conferences_page_parts.rb +10 -0
- data/db/migrate/20181012213049_change_start_time_in_spina_conferences_conferences.rb +15 -0
- data/db/migrate/20181012214813_rename_start_time_in_spina_conferences_conferences.rb +7 -0
- data/db/migrate/20181017155705_add_dependent_option_to_foreign_keys.rb +36 -0
- data/db/migrate/20190408131354_change_spina_resources.rb +56 -0
- data/db/migrate/20190622131423_create_spina_conferences_parts.rb +12 -0
- data/db/migrate/20190701174807_remove_spina_conference_pages.rb +199 -0
- data/db/migrate/20190704135524_add_constraints_to_columns.rb +24 -0
- data/db/migrate/20200126034441_create_spina_conferences_presentation_attachment_types.rb +11 -0
- data/db/migrate/20200126213718_create_spina_conferences_presentation_attachments.rb +19 -0
- data/db/migrate/20200420104603_create_spina_conferences_dietary_requirement_name_translations.rb +19 -0
- data/db/migrate/20200420104740_create_spina_conferences_institution_name_and_city_translations.rb +20 -0
- data/db/migrate/20200420105057_create_spina_conferences_presentation_title_and_abstract_translations.rb +20 -0
- data/db/migrate/20200420105144_create_spina_conferences_presentation_attachment_type_name_translations.rb +20 -0
- data/db/migrate/20200420105201_create_spina_conferences_presentation_type_name_translations.rb +19 -0
- data/db/migrate/20200420105458_create_spina_conferences_room_building_and_number_translations.rb +20 -0
- data/db/migrate/20200420110407_move_attributes_to_translation_tables.rb +161 -0
- data/db/migrate/20200420120706_remove_name_from_spina_conferences_dietary_requirements.rb +7 -0
- data/db/migrate/20200420120759_remove_name_and_city_from_spina_conferences_institutions.rb +8 -0
- data/db/migrate/20200420120946_remove_title_and_abstract_from_spina_conferences_presentations.rb +8 -0
- data/db/migrate/20200420121310_remove_name_from_spina_conferences_presentation_attachment_types.rb +7 -0
- data/db/migrate/20200420121321_remove_name_from_spina_conferences_presentation_types.rb +7 -0
- data/db/migrate/20200420121443_remove_building_and_number_from_spina_conferences_rooms.rb +8 -0
- data/db/migrate/20200502133408_create_spina_conferences_conference_name_translations.rb +19 -0
- data/db/migrate/20200502183409_set_name_for_spina_conferences_conferences.rb +47 -0
- data/db/migrate/20200502183410_remove_institution_from_spina_conferences_conferences.rb +8 -0
- data/db/migrate/20200502183719_remove_spina_conferences_room_possessions.rb +60 -0
- data/db/migrate/20200503230732_rename_spina_conferences_room_uses.rb +8 -0
- data/db/migrate/20200510125131_create_spina_conferences_session_name_translations.rb +19 -0
- data/db/migrate/20200802165242_create_spina_conferences_events.rb +13 -0
- data/db/migrate/20200802184921_create_spina_conferences_event_name_description_and_location_translations.rb +21 -0
- data/db/migrate/20200911161632_update_spina_conferences_parts.rb +23 -0
- data/db/migrate/20200911161651_update_spina_parts.rb +37 -0
- data/db/migrate/20200911161726_move_presentation_parts.rb +101 -0
- data/db/migrate/20200911161739_move_conference_parts.rb +221 -0
- data/db/migrate/20201002122517_remove_spina_conferences_conference_page_parts.rb +14 -0
- data/db/migrate/20201007125625_add_timestamps_to_spina_conferences_parts.rb +10 -0
- data/db/migrate/20210315164409_add_json_attributes_to_spina_conferences_presentations.rb +7 -0
- data/db/migrate/20210315164410_add_json_attributes_to_spina_conferences_conferences.rb +7 -0
- data/db/migrate/20210315164411_convert_partables_to_json.rb +407 -0
- data/db/migrate/20210417102513_add_locale_to_action_text_rich_texts.rb +11 -0
- data/db/migrate/20210417102514_move_texts_to_action_text_rich_texts.rb +82 -0
- data/lib/spina/admin/conferences/engine.rb +31 -0
- data/lib/spina/admin/conferences/migration/renaming.rb +79 -0
- data/lib/spina/admin/conferences/railtie.rb +34 -0
- data/lib/spina/admin/conferences/version.rb +10 -0
- data/lib/spina/admin/conferences.rb +23 -0
- data/lib/tasks/spina/admin/conferences_tasks.rake +14 -0
- metadata +603 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class RemoveSpinaConferencesConferencePageParts < ActiveRecord::Migration[6.0]
|
4
|
+
def change
|
5
|
+
drop_table :spina_conferences_conference_page_parts do |t|
|
6
|
+
t.references :conference_page, foreign_key: { to_table: :spina_pages, on_delete: :cascade },
|
7
|
+
index: { name: 'index_spina_conferences_parts_on_page_id' }
|
8
|
+
t.references :conference_page_partable, polymorphic: true,
|
9
|
+
index: { name: 'index_spina_conferences_parts_on_partable_type_and_partable_id' }
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddTimestampsToSpinaConferencesParts < ActiveRecord::Migration[6.0]
|
4
|
+
def change
|
5
|
+
default = Time.now
|
6
|
+
add_timestamps :spina_conferences_parts, default: default
|
7
|
+
change_column_default :spina_conferences_parts, :created_at, from: default, to: nil
|
8
|
+
change_column_default :spina_conferences_parts, :updated_at, from: default, to: nil
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,407 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Reregistering parts necessary due to deserialization from JSON, where class instances from registration used
|
4
|
+
Spina::Part.all.delete_if { |part| Spina::Parts::Admin::Conferences.constants.include? :"#{part.name.demodulize}" }
|
5
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::Date)
|
6
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::EmailAddress)
|
7
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::Time)
|
8
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::Url)
|
9
|
+
|
10
|
+
# This migration converts table-based partables from Spina v1 to the new JSON-based parts in Spina v2.
|
11
|
+
# If you have custom partables you must modify this migration to ensure the conversion of your partables is handled appropriately
|
12
|
+
# by implementing <tt>convert_to_json!</tt> for your partables.
|
13
|
+
class ConvertPartablesToJson < ActiveRecord::Migration[6.1]
|
14
|
+
def up # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
15
|
+
announce 'converting partables to JSON parts'
|
16
|
+
Spina.config.locales.each do |locale|
|
17
|
+
I18n.with_locale(locale) do
|
18
|
+
say_with_time "Migrating content in locale #{I18n.locale}..." do
|
19
|
+
Spina::Page.in_batches.each_record do |page|
|
20
|
+
say "Migrating page parts for \"#{page.title}\"...", true
|
21
|
+
page.convert_page_parts_to_json!
|
22
|
+
end
|
23
|
+
Spina::Account.in_batches.each_record do |account|
|
24
|
+
say "Migrating layout parts for \"#{account.name}\"...", true
|
25
|
+
account.convert_layout_parts_to_json!
|
26
|
+
end
|
27
|
+
Spina::Admin::Conferences::Conference.in_batches.each_record do |conference|
|
28
|
+
say "Migrating parts for \"#{conference.name}\"...", true
|
29
|
+
conference.convert_parts_to_json!
|
30
|
+
end
|
31
|
+
Spina::Admin::Conferences::Presentation.in_batches.each_record do |presentation|
|
32
|
+
say "Migrating parts for \"#{presentation.title}\"...", true
|
33
|
+
presentation.convert_parts_to_json!
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def down # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
41
|
+
announce 'converting JSON parts to partables'
|
42
|
+
Spina.config.locales.each do |locale|
|
43
|
+
I18n.with_locale(locale) do
|
44
|
+
say_with_time "Migrating content in locale #{I18n.locale}..." do
|
45
|
+
Spina::Page.in_batches.each_record do |page|
|
46
|
+
say "Migrating JSON parts for \"#{page.title}\"...", true
|
47
|
+
page.convert_json_to_parts!
|
48
|
+
end
|
49
|
+
Spina::Account.in_batches.each_record do |account|
|
50
|
+
say "Migrating JSON parts for \"#{account.name}\"...", true
|
51
|
+
account.convert_json_to_parts!
|
52
|
+
end
|
53
|
+
Spina::Admin::Conferences::Conference.in_batches.each_record do |conference|
|
54
|
+
say "Migrating JSON parts for \"#{conference.name}\"...", true
|
55
|
+
conference.convert_json_to_parts!
|
56
|
+
end
|
57
|
+
Spina::Admin::Conferences::Presentation.in_batches.each_record do |presentation|
|
58
|
+
say "Migrating JSON parts for \"#{presentation.title}\"...", true
|
59
|
+
presentation.convert_json_to_parts!
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
module Spina # :nodoc: all
|
68
|
+
class ImageCollectionsImage < Spina::ApplicationRecord
|
69
|
+
belongs_to :image
|
70
|
+
belongs_to :image_collection
|
71
|
+
end
|
72
|
+
|
73
|
+
class AttachmentCollectionsAttachment < Spina::ApplicationRecord
|
74
|
+
belongs_to :attachment
|
75
|
+
belongs_to :attachment_collection
|
76
|
+
end
|
77
|
+
|
78
|
+
class Attachment < ApplicationRecord
|
79
|
+
def convert_to_json!
|
80
|
+
Parts::Attachment.new(attachment_id: id, signed_blob_id: file.blob.signed_id, filename: file.blob.filename)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class AttachmentCollection < ApplicationRecord
|
85
|
+
has_many :attachment_collection_attachments
|
86
|
+
has_many :attachments, through: :attachment_collection_attachments
|
87
|
+
|
88
|
+
def convert_to_json!
|
89
|
+
Parts::Repeater.new(content: attachments.collect(&:convert_to_json!)
|
90
|
+
.collect { |attachment| RepeaterContent.new(parts: [attachment]) })
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
class Image < ApplicationRecord
|
95
|
+
def convert_to_json!
|
96
|
+
Parts::Image.new(image_id: id, signed_blob_id: file.blob.signed_id, filename: file.blob.filename)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
class ImageCollection < ApplicationRecord
|
101
|
+
has_many :image_collections_images
|
102
|
+
has_many :images, through: :image_collections_images
|
103
|
+
|
104
|
+
def convert_to_json!
|
105
|
+
Parts::ImageCollection.new(images: images.order(:position).collect(&:convert_to_json!))
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class Line < ApplicationRecord
|
110
|
+
extend Mobility
|
111
|
+
translates :content, fallbacks: true
|
112
|
+
|
113
|
+
def convert_to_json!
|
114
|
+
Parts::Line.new(content: content)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
class Option < ApplicationRecord
|
119
|
+
def convert_to_json!
|
120
|
+
Parts::Option.new(content: content)
|
121
|
+
end
|
122
|
+
|
123
|
+
private
|
124
|
+
|
125
|
+
def content
|
126
|
+
I18n.t(['options', part.name, value].compact.join('.'))
|
127
|
+
end
|
128
|
+
|
129
|
+
def part
|
130
|
+
page_part || layout_part || structure_part
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class Structure < ApplicationRecord
|
135
|
+
has_many :structure_items
|
136
|
+
has_one :page_part, as: :page_partable
|
137
|
+
has_one :layout_part, as: :layout_partable
|
138
|
+
has_one :part, as: :partable, class_name: 'Spina::Admin::Conferences::Part'
|
139
|
+
|
140
|
+
def convert_to_json!
|
141
|
+
Parts::Repeater.new(content: structure_items.order(:position)
|
142
|
+
.collect(&:convert_to_json!)
|
143
|
+
.each { |structure_item| structure_item.name = present_part.name })
|
144
|
+
end
|
145
|
+
|
146
|
+
def present_part
|
147
|
+
page_part || layout_part || part
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
class Text < ApplicationRecord
|
152
|
+
extend Mobility
|
153
|
+
translates :content, fallbacks: true
|
154
|
+
|
155
|
+
def convert_to_json!
|
156
|
+
Parts::Text.new(content: content)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class LayoutPart < ::Spina::ApplicationRecord
|
161
|
+
belongs_to :account
|
162
|
+
belongs_to :layout_partable, polymorphic: true
|
163
|
+
|
164
|
+
def convert_to_json!
|
165
|
+
raise <<~MESSAGE unless layout_partable.respond_to? :convert_to_json!
|
166
|
+
Cannot convert an instance of #{layout_partable_type} to JSON.
|
167
|
+
You need to modify #{__FILE__} and implement `convert_to_json!` for this partable.
|
168
|
+
MESSAGE
|
169
|
+
|
170
|
+
layout_partable.convert_to_json!.tap { |layout_partable| layout_partable.name = name }
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class PagePart < ::Spina::ApplicationRecord
|
175
|
+
belongs_to :page
|
176
|
+
belongs_to :page_partable, polymorphic: true
|
177
|
+
|
178
|
+
def convert_to_json!
|
179
|
+
raise <<~MESSAGE unless page_partable.respond_to? :convert_to_json!
|
180
|
+
Cannot convert an instance of #{page_partable_type} to JSON.
|
181
|
+
You need to modify #{__FILE__} and implement `convert_to_json!` for this partable.
|
182
|
+
MESSAGE
|
183
|
+
|
184
|
+
page_partable.convert_to_json!.tap { |page_partable| page_partable.name = name }
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
class StructurePart < ::Spina::ApplicationRecord
|
189
|
+
belongs_to :structure_item
|
190
|
+
belongs_to :structure_partable, polymorphic: true
|
191
|
+
|
192
|
+
def convert_to_json!
|
193
|
+
raise <<~MESSAGE unless structure_partable.respond_to? :convert_to_json!
|
194
|
+
Cannot convert an instance of #{structure_partable_type} to JSON.
|
195
|
+
You need to modify #{__FILE__} and implement `convert_to_json!` for this partable.
|
196
|
+
MESSAGE
|
197
|
+
|
198
|
+
structure_partable.convert_to_json!.tap { |structure_partable| structure_partable.name = name }
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class Page < Spina::ApplicationRecord
|
203
|
+
has_many :page_parts
|
204
|
+
|
205
|
+
def convert_page_parts_to_json!
|
206
|
+
page_parts.reject { |page_part| page_part.page_partable.nil? }
|
207
|
+
.collect(&:convert_to_json!)
|
208
|
+
.compact
|
209
|
+
.then { |parts| send(:"#{I18n.locale}_content").union(parts) }
|
210
|
+
.then { |parts| update("#{I18n.locale}_content": parts) }
|
211
|
+
end
|
212
|
+
|
213
|
+
def convert_json_to_parts!
|
214
|
+
update(page_parts: send(:"#{I18n.locale}_content").collect(&:convert_to_partable!)
|
215
|
+
.compact
|
216
|
+
.collect { |partable| PagePart.new(page_partable: partable) })
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
class Account < Spina::ApplicationRecord
|
221
|
+
has_many :layout_parts
|
222
|
+
|
223
|
+
def convert_layout_parts_to_json!
|
224
|
+
layout_parts.reject { |layout_part| layout_part.layout_partable.nil? }
|
225
|
+
.collect(&:convert_to_json!)
|
226
|
+
.compact
|
227
|
+
.then { |parts| send(:"#{I18n.locale}_content").union(parts) }
|
228
|
+
.then { |parts| update("#{I18n.locale}_content": parts) }
|
229
|
+
end
|
230
|
+
|
231
|
+
def convert_json_to_parts!
|
232
|
+
update(layout_parts: send(:"#{I18n.locale}_content")
|
233
|
+
.collect(&:convert_to_partable!)
|
234
|
+
.compact
|
235
|
+
.collect { |partable| LayoutPart.new(layout_partable: partable) })
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class StructureItem < Spina::ApplicationRecord
|
240
|
+
belongs_to :structure
|
241
|
+
has_many :structure_parts
|
242
|
+
|
243
|
+
def convert_to_json!
|
244
|
+
Parts::RepeaterContent.new(parts: structure_parts.reject { |structure_part| structure_part.structure_partable.nil? }
|
245
|
+
.collect(&:convert_to_json!)
|
246
|
+
.compact)
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
module Parts # :nodoc: all
|
251
|
+
class Attachment < Base
|
252
|
+
def convert_to_partable!
|
253
|
+
Spina::Attachment.find(attachment_id)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
class Image < Base
|
258
|
+
def convert_to_partable!
|
259
|
+
Spina::Image.find(image_id)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
class ImageCollection < Base
|
264
|
+
def convert_to_partable!
|
265
|
+
Spina::ImageCollection.new(images: images.collect(&:convert_to_partable!))
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
class Line < Base
|
270
|
+
def convert_to_partable!
|
271
|
+
Spina::Line.new(content: content)
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
class MultiLine < Base
|
276
|
+
def convert_to_partable!
|
277
|
+
Spina::Text.new(content: content)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class Text < Base
|
282
|
+
def convert_to_partable!
|
283
|
+
Spina::Text.new(content: content)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
class Option < Base
|
288
|
+
def convert_to_partable!
|
289
|
+
Spina::Option.new(content: content)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
class Repeater < Base
|
294
|
+
def convert_to_partable!
|
295
|
+
Spina::Structure.new(structure_items: content.collect(&:convert_to_structure_item!))
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
class RepeaterContent < Base
|
300
|
+
def convert_to_structure_item!
|
301
|
+
Spina::StructureItem.new(structure_parts: parts.collect(&:convert_to_partable!)
|
302
|
+
.compact
|
303
|
+
.collect { |partable| StructurePart.new(structure_partable: partable) })
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
module Admin
|
308
|
+
module Conferences
|
309
|
+
class Date < Spina::Parts::Base
|
310
|
+
def convert_to_partable!
|
311
|
+
Spina::Admin::Conferences::DatePart.new(content: content)
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
class EmailAddress < Spina::Parts::Base
|
316
|
+
def convert_to_partable!
|
317
|
+
Spina::Admin::Conferences::EmailAddressPart.new(content: content)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
class Time < Spina::Parts::Base
|
322
|
+
def convert_to_partable!
|
323
|
+
Spina::Admin::Conferences::TimePart.new(content: content)
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
class Url < Spina::Parts::Base
|
328
|
+
def convert_to_partable!
|
329
|
+
Spina::Admin::Conferences::UrlPart.new(content: content)
|
330
|
+
end
|
331
|
+
end
|
332
|
+
end
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
module Admin
|
337
|
+
module Conferences
|
338
|
+
class DatePart < ApplicationRecord
|
339
|
+
def convert_to_json!
|
340
|
+
Spina::Parts::Admin::Conferences::Date.new(content: content)
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
class EmailAddressPart < ApplicationRecord
|
345
|
+
def convert_to_json!
|
346
|
+
Spina::Parts::Admin::Conferences::EmailAddress.new(content: content)
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class TimePart < ApplicationRecord
|
351
|
+
def convert_to_json!
|
352
|
+
Spina::Parts::Admin::Conferences::Time.new(content: content)
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
class UrlPart < ApplicationRecord
|
357
|
+
def convert_to_json!
|
358
|
+
Spina::Parts::Admin::Conferences::Url.new(content: content)
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
class Part < ApplicationRecord
|
363
|
+
belongs_to :pageable, polymorphic: true
|
364
|
+
belongs_to :partable, polymorphic: true
|
365
|
+
|
366
|
+
def convert_to_json!
|
367
|
+
raise <<~MESSAGE unless partable.respond_to? :convert_to_json!
|
368
|
+
Cannot convert an instance of #{partable_type} to JSON.
|
369
|
+
You need to modify #{__FILE__} and implement `convert_to_json!` for this partable.
|
370
|
+
MESSAGE
|
371
|
+
|
372
|
+
partable.convert_to_json!.tap { |partable| partable.name = name }
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
module Pageable
|
377
|
+
extend ActiveSupport::Concern
|
378
|
+
|
379
|
+
included do
|
380
|
+
has_many :parts, as: :pageable
|
381
|
+
|
382
|
+
def convert_parts_to_json!
|
383
|
+
parts.reject { |part| part.partable.nil? }
|
384
|
+
.collect(&:convert_to_json!)
|
385
|
+
.compact
|
386
|
+
.then { |parts| send(:"#{I18n.locale}_content").union(parts) }
|
387
|
+
.then { |parts| update("#{I18n.locale}_content": parts) }
|
388
|
+
end
|
389
|
+
|
390
|
+
def convert_json_to_parts!
|
391
|
+
update(parts: send(:"#{I18n.locale}_content").collect(&:convert_to_partable!)
|
392
|
+
.compact
|
393
|
+
.collect { |partable| Part.new(partable: partable) })
|
394
|
+
end
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
class Conference < ApplicationRecord
|
399
|
+
include Pageable
|
400
|
+
end
|
401
|
+
|
402
|
+
class Presentation < ApplicationRecord
|
403
|
+
include Pageable
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddLocaleToActionTextRichTexts < ActiveRecord::Migration[6.1]
|
4
|
+
def change
|
5
|
+
add_column :action_text_rich_texts, :locale, :string
|
6
|
+
remove_index :action_text_rich_texts, column: %i[record_type record_id name], name: :index_action_text_rich_texts_uniqueness,
|
7
|
+
unique: true
|
8
|
+
add_index :action_text_rich_texts, %i[record_type record_id name locale], name: :index_action_text_rich_texts_uniqueness,
|
9
|
+
unique: true
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class MoveTextsToActionTextRichTexts < ActiveRecord::Migration[6.1] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_mobility_tables
|
6
|
+
|
7
|
+
Spina.config.locales.each do |locale|
|
8
|
+
I18n.with_locale(locale) do
|
9
|
+
move_presentation_abstracts
|
10
|
+
move_event_descriptions
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
remove_column :spina_conferences_presentation_translations, :abstract, :text
|
15
|
+
remove_column :spina_conferences_event_translations, :description, :text
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def create_mobility_tables
|
21
|
+
create_table :mobility_text_translations do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
22
|
+
t.string :record
|
23
|
+
end
|
24
|
+
create_table :mobility_string_translations do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
25
|
+
t.string :record
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def move_presentation_abstracts
|
30
|
+
reversible do |dir|
|
31
|
+
Spina::Admin::Conferences::Presentation.in_batches.each_record do |presentation|
|
32
|
+
dir.up { presentation.update(abstract: presentation.presentation_translation.abstract) }
|
33
|
+
dir.down do
|
34
|
+
break if presentation.abstract.blank?
|
35
|
+
|
36
|
+
presentation.presentation_translation.update(abstract: presentation.abstract.read_attribute_before_type_cast('body'))
|
37
|
+
presentation.abstract.destroy
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def move_event_descriptions
|
44
|
+
reversible do |dir|
|
45
|
+
Spina::Admin::Conferences::Event.in_batches.each_record do |event|
|
46
|
+
dir.up { event.update(description: event.event_translation.description) }
|
47
|
+
dir.down do
|
48
|
+
break if event.description.blank?
|
49
|
+
|
50
|
+
event.event_translation.update(description: event.description.read_attribute_before_type_cast('body'))
|
51
|
+
event.description.destroy
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
module Spina
|
59
|
+
module Admin
|
60
|
+
module Conferences
|
61
|
+
class PresentationTranslation < ApplicationRecord
|
62
|
+
belongs_to :presentation, foreign_key: 'spina_conferences_presentation_id'
|
63
|
+
end
|
64
|
+
|
65
|
+
class EventTranslation < ApplicationRecord
|
66
|
+
belongs_to :event, foreign_key: 'spina_conferences_event_id'
|
67
|
+
end
|
68
|
+
|
69
|
+
class Presentation < ApplicationRecord
|
70
|
+
has_one :presentation_translation, -> { where locale: I18n.locale }, foreign_key: 'spina_conferences_presentation_id'
|
71
|
+
|
72
|
+
translates :abstract, backend: :action_text
|
73
|
+
end
|
74
|
+
|
75
|
+
class Event < ApplicationRecord
|
76
|
+
has_one :event_translation, -> { where locale: I18n.locale }, foreign_key: 'spina_conferences_event_id'
|
77
|
+
|
78
|
+
translates :description, backend: :action_text
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spina
|
4
|
+
module Admin
|
5
|
+
module Conferences
|
6
|
+
# Engine class for the plugin. This is where the plugin is registered as a {Spina::Plugin} with {Spina}.
|
7
|
+
# @note The +name+ and +namespace+ of the {Spina::Plugin} object is +'conferences'+ (for compatibility reasons).
|
8
|
+
class Engine < ::Rails::Engine
|
9
|
+
isolate_namespace Spina::Admin::Conferences
|
10
|
+
|
11
|
+
config.before_initialize do
|
12
|
+
::Spina::Plugin.register do |plugin|
|
13
|
+
plugin.name = 'conferences'
|
14
|
+
plugin.namespace = 'conferences'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
config.after_initialize do
|
19
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::Date)
|
20
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::EmailAddress)
|
21
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::Time)
|
22
|
+
Spina::Part.register(Spina::Parts::Admin::Conferences::Url)
|
23
|
+
end
|
24
|
+
|
25
|
+
config.to_prepare do
|
26
|
+
require 'mobility/action_text'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/concern'
|
4
|
+
|
5
|
+
module Spina
|
6
|
+
module Admin
|
7
|
+
module Conferences
|
8
|
+
module Migration
|
9
|
+
module Renaming
|
10
|
+
extend ActiveSupport::Concern
|
11
|
+
|
12
|
+
included do
|
13
|
+
@stale_migrations ||= []
|
14
|
+
@migrations_path ||= nil
|
15
|
+
end
|
16
|
+
|
17
|
+
class_methods do
|
18
|
+
def rename_migration(name, to:)
|
19
|
+
config.after_initialize do
|
20
|
+
migration = {}
|
21
|
+
migration[:old] = migration_hash(name)
|
22
|
+
migration[:new] = migration_hash(to)
|
23
|
+
@stale_migrations << migration if [migration[:old], migration[:new]].pluck(:file).all?(&:present?)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def raise_on_duplicate_migrations!
|
28
|
+
raise DuplicateMigrationsError, @stale_migrations if @stale_migrations.any?
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
attr_reader :duplicate_migrations
|
34
|
+
|
35
|
+
class DuplicateMigrationsError < ::StandardError
|
36
|
+
def initialize(migrations)
|
37
|
+
messages = migrations.collect { |migration| generate_message(migration) }
|
38
|
+
super(messages.join("\n"))
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
MIGRATION_REGEXP = /([0-9]+)_.+\.(spina(_admin)?_conferences).rb$/.freeze
|
44
|
+
|
45
|
+
def generate_message(migration)
|
46
|
+
old_version, old_scope = parse_filename(migration[:old][:file])
|
47
|
+
messages = []
|
48
|
+
messages << "#{File.basename(migration[:new][:file])} is a renamed version of #{File.basename(migration[:old][:file])}."
|
49
|
+
messages << "Rename #{File.basename(migration[:old][:file])} to #{old_version}_#{migration[:new][:name]}.#{old_scope}.rb " \
|
50
|
+
"and delete #{File.basename(migration[:new][:file])}."
|
51
|
+
messages.join("\n")
|
52
|
+
end
|
53
|
+
|
54
|
+
def parse_filename(filename)
|
55
|
+
filename.scan(MIGRATION_REGEXP).first
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def migration_hash(name)
|
60
|
+
{ name: name, file: detect_migration(name) }
|
61
|
+
end
|
62
|
+
|
63
|
+
def migrations_path
|
64
|
+
@migrations_path || ActiveRecord::Tasks::DatabaseTasks.migrations_paths.first
|
65
|
+
end
|
66
|
+
|
67
|
+
def engine_migration_glob(name)
|
68
|
+
"#{migrations_path}/**/*_#{name}.spina{_admin,}_conferences_engine.rb"
|
69
|
+
end
|
70
|
+
|
71
|
+
def detect_migration(name)
|
72
|
+
Dir[engine_migration_glob(name)].first
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spina/admin/conferences/migration/renaming'
|
4
|
+
|
5
|
+
module Spina
|
6
|
+
module Admin
|
7
|
+
module Conferences
|
8
|
+
class Railtie < Rails::Railtie
|
9
|
+
include Migration::Renaming
|
10
|
+
|
11
|
+
rename_migration 'create_spina_conferences_dietary_requirement_name_translations_for_mobility_table_backend',
|
12
|
+
to: 'create_spina_conferences_dietary_requirement_name_translations'
|
13
|
+
rename_migration 'create_spina_conferences_institution_name_and_city_translations_for_mobility_table_backend',
|
14
|
+
to: 'create_spina_conferences_institution_name_and_city_translations'
|
15
|
+
rename_migration 'create_spina_conferences_presentation_attachment_type_name_translations_for_mobility_table_backend',
|
16
|
+
to: 'create_spina_conferences_presentation_attachment_type_name_translations'
|
17
|
+
rename_migration 'create_spina_conferences_presentation_type_name_translations_for_mobility_table_backend',
|
18
|
+
to: 'create_spina_conferences_presentation_type_name_translations'
|
19
|
+
rename_migration 'create_spina_conferences_room_building_and_number_translations_for_mobility_table_backend',
|
20
|
+
to: 'create_spina_conferences_room_building_and_number_translations'
|
21
|
+
rename_migration 'create_spina_conferences_conference_name_translations_for_mobility_table_backend',
|
22
|
+
to: 'create_spina_conferences_conference_name_translations'
|
23
|
+
rename_migration 'create_spina_conferences_session_name_translations_for_mobility_table_backend',
|
24
|
+
to: 'create_spina_conferences_session_name_translations'
|
25
|
+
rename_migration 'create_spina_conferences_event_name_description_and_location_translations_for_mobility_table_backend',
|
26
|
+
to: 'create_spina_conferences_event_name_description_and_location_translations'
|
27
|
+
|
28
|
+
config.after_initialize do
|
29
|
+
raise_on_duplicate_migrations!
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|