pageflow 16.0.0 → 16.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +210 -33
- data/README.md +0 -1
- data/Rakefile +1 -1
- data/admins/pageflow/entry.rb +0 -1
- data/admins/pageflow/sites.rb +3 -0
- data/app/assets/javascripts/pageflow/dist/ui.js +298 -72
- data/app/assets/stylesheets/pageflow/admin/permalink_input.scss +10 -0
- data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +6 -1
- data/app/assets/stylesheets/pageflow/editor/file_thumbnails.scss +4 -0
- data/app/assets/stylesheets/pageflow/editor/help.scss +3 -3
- data/app/assets/stylesheets/pageflow/editor/info_box.scss +7 -0
- data/app/assets/stylesheets/pageflow/editor/inputs/file_input.scss +0 -5
- data/app/assets/stylesheets/pageflow/ui/forms.scss +1 -1
- data/app/controllers/pageflow/chapters_controller.rb +2 -2
- data/app/controllers/pageflow/editor/files_controller.rb +1 -1
- data/app/controllers/pageflow/entries_controller.rb +10 -0
- data/app/controllers/pageflow/feeds_controller.rb +18 -0
- data/app/controllers/pageflow/pages_controller.rb +2 -2
- data/app/controllers/pageflow/sitemaps_controller.rb +15 -0
- data/app/controllers/pageflow/storylines_controller.rb +2 -2
- data/app/helpers/pageflow/entries_helper.rb +2 -1
- data/app/helpers/pageflow/feeds_helper.rb +66 -0
- data/app/helpers/pageflow/page_types_helper.rb +9 -9
- data/app/inputs/pageflow_permalink_input.rb +15 -3
- data/app/models/concerns/pageflow/reusable_file.rb +3 -3
- data/app/models/pageflow/account.rb +8 -0
- data/app/models/pageflow/audio_file_url_templates.rb +2 -1
- data/app/models/pageflow/draft_entry.rb +1 -1
- data/app/models/pageflow/entries_feed.rb +32 -0
- data/app/models/pageflow/image_file.rb +14 -3
- data/app/models/pageflow/membership.rb +3 -2
- data/app/models/pageflow/other_file.rb +5 -0
- data/app/models/pageflow/other_file_url_templates.rb +16 -0
- data/app/models/pageflow/published_entry.rb +6 -0
- data/app/models/pageflow/revision.rb +4 -0
- data/app/models/pageflow/site.rb +8 -0
- data/app/models/pageflow/sitemaps.rb +13 -0
- data/app/models/pageflow/used_file.rb +2 -2
- data/app/models/pageflow/video_file_url_templates.rb +3 -1
- data/app/models/pageflow/widget.rb +9 -1
- data/app/views/admin/entries/_permalink_inputs.html.erb +1 -2
- data/app/views/admin/sites/_attributes_table.html.arb +3 -0
- data/app/views/admin/sites/_fields.html.erb +6 -0
- data/app/views/components/pageflow/admin/extensible_attributes_table.rb +8 -2
- data/app/views/components/pageflow/admin/sites_tab.rb +3 -0
- data/app/views/pageflow/editor/config/_seeds.json.jbuilder +1 -0
- data/app/views/pageflow/feeds/index.atom.builder +20 -0
- data/app/views/pageflow/sitemaps/index.xml.builder +9 -0
- data/config/initializers/features.rb +1 -0
- data/config/initializers/paperclip.rb +4 -0
- data/config/locales/de.yml +27 -6
- data/config/locales/en.yml +30 -4
- data/config/routes.rb +3 -0
- data/config/spring.rb +1 -1
- data/db/migrate/20230120092923_create_other_files.rb +23 -0
- data/db/migrate/20230323115745_add_feeds_enabled_to_sites.rb +5 -0
- data/db/migrate/20230323154323_add_sitemap_enabled_to_sites.rb +5 -0
- data/db/migrate/20230331103823_add_title_to_sites.rb +5 -0
- data/db/migrate/20230405103612_add_custom_feed_url_to_sites.rb +5 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +445 -109
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +26 -3
- data/entry_types/paged/app/controllers/pageflow_paged/editor/entries_controller.rb +0 -2
- data/entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb +1 -0
- data/entry_types/paged/app/views/pageflow_paged/entries/show.html.erb +1 -0
- data/entry_types/paged/config/initializers/features.rb +0 -1
- data/entry_types/paged/lib/pageflow_paged/engine.rb +17 -1
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/chapters_controller.rb +2 -2
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/content_elements_controller.rb +3 -4
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/sections_controller.rb +13 -6
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/entries_controller.rb +2 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/cache_helper.rb +11 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/entry_json_seed_helper.rb +42 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb +3 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/packs_helper.rb +31 -10
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/react_server_side_rendering_helper.rb +9 -1
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/themes_helper.rb +3 -1
- data/entry_types/scrolled/app/models/pageflow_scrolled/chapter.rb +23 -0
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb +6 -1
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_seed.json.jbuilder +1 -5
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/sections/_section_with_content_elements.json.jbuilder +10 -0
- data/entry_types/scrolled/app/views/pageflow_scrolled/entries/show.html.erb +44 -41
- data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_consent_vendors.json.jbuilder +16 -0
- data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +3 -0
- data/entry_types/scrolled/config/initializers/features.rb +5 -0
- data/entry_types/scrolled/config/locales/consent_widget.de.yml +4 -0
- data/entry_types/scrolled/config/locales/consent_widget.en.yml +4 -0
- data/entry_types/scrolled/config/locales/de.yml +189 -8
- data/entry_types/scrolled/config/locales/en.yml +207 -2
- data/entry_types/scrolled/config/routes.rb +4 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/install_generator.rb +97 -5
- data/entry_types/scrolled/lib/pageflow_scrolled/additional_seed_data.rb +1 -1
- data/entry_types/scrolled/lib/pageflow_scrolled/configuration.rb +96 -0
- data/entry_types/scrolled/lib/pageflow_scrolled/content_element_consent_vendors.rb +38 -0
- data/entry_types/scrolled/lib/pageflow_scrolled/engine.rb +17 -1
- data/entry_types/scrolled/lib/pageflow_scrolled/plugin.rb +24 -0
- data/entry_types/scrolled/lib/pageflow_scrolled/react_widget_type.rb +6 -1
- data/entry_types/scrolled/lib/tasks/pageflow_scrolled/storybook.rake +1 -2
- data/entry_types/scrolled/package/contentElements-editor.js +307 -22
- data/entry_types/scrolled/package/contentElements-frontend.css +1 -1
- data/entry_types/scrolled/package/contentElements-frontend.js +690 -71
- data/entry_types/scrolled/package/editor.js +616 -220
- data/entry_types/scrolled/package/frontend/{EditableInlineText.module-14c7b097.js → EditableInlineText.module-fa9e3aff.js} +1669 -1674
- data/entry_types/scrolled/package/frontend/PhonePlatformContext-10a1d600.js +32 -0
- data/entry_types/scrolled/package/frontend/ToggleFullscreenCornerButton-727cce0d.js +107 -0
- data/entry_types/scrolled/package/frontend/Viewer-169e14ca.js +154 -0
- data/entry_types/scrolled/package/frontend/{Viewer-b6becc57.js → Viewer-ee1aa590.js} +32 -161
- data/entry_types/scrolled/package/frontend/arrowRight-92a34ccc.js +77 -0
- data/entry_types/scrolled/package/frontend/{components-b3160dd7.js → components-4a09bfa3.js} +185 -45
- data/entry_types/scrolled/package/frontend/{PhonePlatformContext-f6093cc6.js → i18n-ddd92820.js} +149 -107
- data/entry_types/scrolled/package/frontend/index-02378634.js +118 -0
- data/entry_types/scrolled/package/frontend/index.css +1 -1
- data/entry_types/scrolled/package/frontend/index.js +206 -54
- data/entry_types/scrolled/package/frontend/useContentElementEditorState-63045393.js +52 -0
- data/entry_types/scrolled/package/package.json +2 -1
- data/entry_types/scrolled/package/testHelpers.js +9 -2
- data/entry_types/scrolled/package/values/colors.module.css +15 -0
- data/entry_types/scrolled/package/widgets/consentBar.css +1 -0
- data/entry_types/scrolled/package/widgets/consentBar.js +426 -0
- data/entry_types/scrolled/package/widgets/defaultNavigation.css +1 -1
- data/lib/generators/pageflow/resque/resque_generator.rb +1 -1
- data/lib/pageflow/ability_mixin.rb +5 -5
- data/lib/pageflow/active_admin_can_can_fix.rb +2 -2
- data/lib/pageflow/built_in_file_type.rb +7 -0
- data/lib/pageflow/configuration.rb +21 -0
- data/lib/pageflow/engine.rb +60 -39
- data/lib/pageflow/entry_export_import/revision_serialization.rb +1 -1
- data/lib/pageflow/file_type.rb +2 -2
- data/lib/pageflow/global_config_api.rb +2 -2
- data/lib/pageflow/nested_revision_component.rb +23 -5
- data/lib/pageflow/rails_version.rb +19 -0
- data/lib/pageflow/seeds.rb +10 -7
- data/lib/pageflow/version.rb +1 -1
- data/lib/pageflow/widget_types.rb +4 -0
- data/package/config/webpack5.js +14 -0
- data/package/editor.js +141 -30
- data/package/frontend.js +26 -2
- data/package/testHelpers.js +1 -1
- data/package/ui.js +296 -71
- data/spec/factories/entries.rb +17 -3
- data/spec/factories/sites.rb +3 -0
- data/vendor/assets/javascripts/iscroll.js +4 -7
- metadata +65 -49
- data/app/helpers/pageflow/admin/permalinks_helper.rb +0 -15
- data/entry_types/scrolled/package/frontend/arrowRight-78a7cee4.js +0 -42
data/config/locales/de.yml
CHANGED
@@ -266,15 +266,19 @@ de:
|
|
266
266
|
published_until: Publiziert bis
|
267
267
|
updated_at: Geändert am
|
268
268
|
pageflow/site:
|
269
|
+
account: Konto
|
269
270
|
additional_cnames: Zusätzliche CNAMES
|
270
271
|
cname: CNAME
|
271
272
|
copyright_link_label: Copyright-Link Text
|
272
273
|
copyright_link_url: Copyright-Link URL
|
274
|
+
feeds_enabled: Atom-Feeds
|
273
275
|
home_url: Redirect URL
|
274
276
|
imprint_link_label: Impressum-Link Text
|
275
277
|
imprint_link_url: Impressum-Link URL
|
276
278
|
privacy_link_url: Datenschutz-Link URL
|
277
279
|
share_providers: Standard Share Links
|
280
|
+
sitemap_enabled: XML-Sitemap
|
281
|
+
title: Titel
|
278
282
|
pageflow/text_track_file:
|
279
283
|
kind: Art
|
280
284
|
label: Label
|
@@ -403,6 +407,9 @@ de:
|
|
403
407
|
pageflow/membership:
|
404
408
|
one: Mitgliedschaft
|
405
409
|
other: Mitgliedschaften
|
410
|
+
pageflow/other_file:
|
411
|
+
many: Unbekannte Dateien
|
412
|
+
one: Unbekannte Datei
|
406
413
|
pageflow/revision:
|
407
414
|
one: Revision
|
408
415
|
other: Revisionen
|
@@ -499,7 +506,7 @@ de:
|
|
499
506
|
- Fr
|
500
507
|
- Sa
|
501
508
|
abbr_month_names:
|
502
|
-
-
|
509
|
+
-
|
503
510
|
- Jan
|
504
511
|
- Feb
|
505
512
|
- Mär
|
@@ -525,7 +532,7 @@ de:
|
|
525
532
|
long: "%e. %B %Y"
|
526
533
|
short: "%e. %b"
|
527
534
|
month_names:
|
528
|
-
-
|
535
|
+
-
|
529
536
|
- Januar
|
530
537
|
- Februar
|
531
538
|
- März
|
@@ -894,10 +901,24 @@ de:
|
|
894
901
|
default_locale_hint: Voreinstellung Sprache für Einträge
|
895
902
|
default_name: "(Standard)"
|
896
903
|
default_publisher_hint: Voreinstellung 'publisher' Meta-Feld für Eintrage
|
904
|
+
feeds_hint: |-
|
905
|
+
Wenn diese Option aktiviert ist, stehen Feeds mit allen
|
906
|
+
veröffentlichten Beiträgen der Site über URLs der Form
|
907
|
+
https://%{site_host}/feeds/de.atom zu Verfügung, wobei "en"
|
908
|
+
durch ein beliebiges Sprachkürzel ersetzt werden kann, nach
|
909
|
+
dem gefiltert werden soll.
|
897
910
|
home_url_hint: Wird einer der obigen CNAMES ohne Pfad in der URL verwendet, wird zu dieser URL umgeleitet. Standard Link Ziel des Home Buttons.
|
898
911
|
name: "%{account_name}"
|
899
912
|
remove_logo: Logo entfernen
|
900
913
|
show: Anzeigen
|
914
|
+
sitemap_hint: |-
|
915
|
+
Wenn diese Option aktiviert ist, steht eine Sitemap mit
|
916
|
+
allen veröffentlichten Einträgen der Site unter
|
917
|
+
https://%{site_host}/sitemap.xml zur Verfügung. Registriere
|
918
|
+
die URL in Google Search Console oder ähnlichen Tools.
|
919
|
+
title_hint: |-
|
920
|
+
Wird in Titeln der Beiträge und als Titel für den Atom-Feed
|
921
|
+
verwendet.
|
901
922
|
user:
|
902
923
|
cannot_add: Was Sie tun möchten, ist nicht möglich. Sie müssen aktualisieren.
|
903
924
|
none_addable_tooltip: Kein Benutzer verfügbar
|
@@ -1148,6 +1169,7 @@ de:
|
|
1148
1169
|
tabs:
|
1149
1170
|
audio_files: Audios
|
1150
1171
|
image_files: Bilder
|
1172
|
+
other_files: Andere
|
1151
1173
|
video_files: Videos
|
1152
1174
|
media_loading_spinner:
|
1153
1175
|
widget_type_info_box_text: Dies ist eine Vorschau der Lade-Ansicht von 'Bild'. Die Animation wird ausgeführt, während die Seite geladen wird.
|
@@ -1290,7 +1312,7 @@ de:
|
|
1290
1312
|
close: Schließen
|
1291
1313
|
title: Hilfe
|
1292
1314
|
help_button:
|
1293
|
-
open_help: Hilfe
|
1315
|
+
open_help: Hilfe
|
1294
1316
|
list_blank_slate:
|
1295
1317
|
text: "(Keine Einträge)"
|
1296
1318
|
list_item:
|
@@ -1804,9 +1826,7 @@ de:
|
|
1804
1826
|
publisher: Name oder Firmenname des Herausgeber.
|
1805
1827
|
share_providers: Social Media Plattformen, die unter dem Menüpunkt "Teilen" des Beitrags angezeigt werden sollen
|
1806
1828
|
share_url: URL, die geteilt werden soll, wenn der Benutzer auf einen der Social Media Buttons klickt. Feld frei lassen, um URL des veröffentlichten Beitrags zu verwenden.
|
1807
|
-
summary:
|
1808
|
-
|
1809
|
-
'
|
1829
|
+
summary: Trage hier ein, welcher Beschreibungstext beim Teilen in sozialen Netzwerken angezeigt wird.
|
1810
1830
|
title: Hier kannst Du Deinem Pageflow einen Titel geben, der in der Titelleiste des Browserfensters angezeigt wird. Unter diesem Titel wird Dein Pageflow nach der Veröffentlichung auch in Suchmaschinen indiziert werden
|
1811
1831
|
pageflow/page:
|
1812
1832
|
additional_title: Die Infobox wird über den Steuerelementen zum Starten und Stoppen der Wiedegabe angezeigt.
|
@@ -1905,6 +1925,7 @@ de:
|
|
1905
1925
|
roles:
|
1906
1926
|
analytics: Zählpixel
|
1907
1927
|
background_media_control: Hintergrund-Media-Control
|
1928
|
+
consent: Privatsphäre-Einstellungen
|
1908
1929
|
cookie_notice: Privatsphäre-Einstellungen
|
1909
1930
|
loading_spinner: Lade-Ansicht
|
1910
1931
|
mobile_navigation: Mobile Navigation
|
data/config/locales/en.yml
CHANGED
@@ -266,15 +266,19 @@ en:
|
|
266
266
|
published_until: Published until
|
267
267
|
updated_at: Updated at
|
268
268
|
pageflow/site:
|
269
|
+
account: Account
|
269
270
|
additional_cnames: Additional CNAMES
|
270
271
|
cname: CNAME
|
271
272
|
copyright_link_label: Copyright link Text
|
272
273
|
copyright_link_url: Copyright link URL
|
274
|
+
feeds_enabled: Atom feeds
|
273
275
|
home_url: Redirect URL
|
274
276
|
imprint_link_label: Legal notice link label
|
275
277
|
imprint_link_url: Legal notice link URL
|
276
278
|
privacy_link_url: Privacy link URL
|
277
279
|
share_providers: Default Share Links
|
280
|
+
sitemap_enabled: XML sitemap
|
281
|
+
title: Title
|
278
282
|
pageflow/text_track_file:
|
279
283
|
kind: Kind
|
280
284
|
label: Label
|
@@ -403,6 +407,9 @@ en:
|
|
403
407
|
pageflow/membership:
|
404
408
|
one: Membership
|
405
409
|
other: Memberships
|
410
|
+
pageflow/other_file:
|
411
|
+
many: Unknown files
|
412
|
+
one: Unknown file
|
406
413
|
pageflow/revision:
|
407
414
|
one: Version
|
408
415
|
other: Versions
|
@@ -499,7 +506,7 @@ en:
|
|
499
506
|
- Fri
|
500
507
|
- Sat
|
501
508
|
abbr_month_names:
|
502
|
-
-
|
509
|
+
-
|
503
510
|
- Jan
|
504
511
|
- Feb
|
505
512
|
- Mar
|
@@ -525,7 +532,7 @@ en:
|
|
525
532
|
long: "%B %d, %Y"
|
526
533
|
short: "%b %d"
|
527
534
|
month_names:
|
528
|
-
-
|
535
|
+
-
|
529
536
|
- January
|
530
537
|
- February
|
531
538
|
- March
|
@@ -732,6 +739,12 @@ en:
|
|
732
739
|
create: Create %{model}
|
733
740
|
submit: Save %{model}
|
734
741
|
update: Update %{model}
|
742
|
+
i18n:
|
743
|
+
transliterate:
|
744
|
+
rule:
|
745
|
+
ä:
|
746
|
+
ö:
|
747
|
+
ü:
|
735
748
|
language: English
|
736
749
|
number:
|
737
750
|
currency:
|
@@ -888,10 +901,21 @@ en:
|
|
888
901
|
default_locale_hint: Default language for stories
|
889
902
|
default_name: "(Default)"
|
890
903
|
default_publisher_hint: Default 'publisher' meta field for stories
|
904
|
+
feeds_hint: |-
|
905
|
+
When enabled, feeds containing all published entries of the
|
906
|
+
site are available via URLs of the form
|
907
|
+
https://%{site_host}/feeds/en.atom where "en" can be
|
908
|
+
replaced with any locale you want to filter by.
|
891
909
|
home_url_hint: Used for requests to the root path with one of the above CNAMES. Default target location for the home button.
|
892
910
|
name: "%{account_name}"
|
893
911
|
remove_logo: Remove logo
|
894
912
|
show: View
|
913
|
+
sitemap_hint: |-
|
914
|
+
When enabled, a sitemap with all published entries of the
|
915
|
+
site is available at
|
916
|
+
https://%{site_host}/sitemap.xml. Register the URL in Google
|
917
|
+
Search Console or similar tools.
|
918
|
+
title_hint: Used in entry titles and as title for the atom feed.
|
895
919
|
user:
|
896
920
|
cannot_add: What you want to do is not possible. You need to upgrade.
|
897
921
|
none_addable_tooltip: No user available
|
@@ -1143,6 +1167,7 @@ en:
|
|
1143
1167
|
tabs:
|
1144
1168
|
audio_files: Audios
|
1145
1169
|
image_files: Images
|
1170
|
+
other_files: Other
|
1146
1171
|
video_files: Videos
|
1147
1172
|
media_loading_spinner:
|
1148
1173
|
widget_type_info_box_text: This is a preview of the 'Image' loading view. The animation runs while the page is loading.
|
@@ -1285,7 +1310,7 @@ en:
|
|
1285
1310
|
close: Close
|
1286
1311
|
title: Help
|
1287
1312
|
help_button:
|
1288
|
-
open_help:
|
1313
|
+
open_help: Help
|
1289
1314
|
list_blank_slate:
|
1290
1315
|
text: "(No items)"
|
1291
1316
|
list_item:
|
@@ -1816,7 +1841,7 @@ en:
|
|
1816
1841
|
The text-block can be formatted with the buttons underneath the input field. [B= bold / I=italic / U=underlined / infinity symbol= Link/URL to an external website]
|
1817
1842
|
|
1818
1843
|
All changes are visible in the left front-end-view as soon as you leave the appropriate input field in the editor.
|
1819
|
-
thumbnail_image_id:
|
1844
|
+
thumbnail_image_id: The thumbnail replaces the automatically generated preview-picture in the navigation and overview.
|
1820
1845
|
transition: Choose the animation, that will be used when users scroll to this page.
|
1821
1846
|
templates:
|
1822
1847
|
inputs:
|
@@ -1896,6 +1921,7 @@ en:
|
|
1896
1921
|
roles:
|
1897
1922
|
analytics: Tracking
|
1898
1923
|
background_media_control: Background media control
|
1924
|
+
consent: Privacy settings
|
1899
1925
|
cookie_notice: Privacy settings
|
1900
1926
|
loading_spinner: Loading View
|
1901
1927
|
mobile_navigation: Mobile navigation
|
data/config/routes.rb
CHANGED
@@ -88,6 +88,9 @@ Pageflow::Engine.routes.draw do
|
|
88
88
|
# Authentication provider call back
|
89
89
|
get '/auth/:provider/callback', to: 'users/omniauth_callbacks#auth_callback'
|
90
90
|
|
91
|
+
get 'feeds/:locale', to: 'feeds#index', as: :feed
|
92
|
+
get 'sitemap', to: 'sitemaps#index', as: :sitemap
|
93
|
+
|
91
94
|
get ':id/manifest', to: 'entries#manifest', as: :entry_manifest
|
92
95
|
get ':id/embed', to: 'entries#show', defaults: {embed: '1'}, as: :entry_embed
|
93
96
|
|
data/config/spring.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require File.expand_path('../
|
1
|
+
require File.expand_path('../lib/pageflow/rails_version', File.dirname(__FILE__))
|
2
2
|
Spring.application_root = File.join(__FILE__, "../../spec/dummy/rails-#{Pageflow::RailsVersion.detect}")
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class CreateOtherFiles < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :pageflow_other_files do |t|
|
4
|
+
t.belongs_to :entry, index: true
|
5
|
+
t.belongs_to :uploader, index: true
|
6
|
+
|
7
|
+
t.bigint 'parent_file_id'
|
8
|
+
t.string 'parent_file_model_type'
|
9
|
+
|
10
|
+
t.string 'state'
|
11
|
+
t.string 'rights'
|
12
|
+
|
13
|
+
t.string 'attachment_on_s3_file_name'
|
14
|
+
t.string 'attachment_on_s3_content_type'
|
15
|
+
t.bigint 'attachment_on_s3_file_size'
|
16
|
+
t.datetime 'attachment_on_s3_updated_at'
|
17
|
+
|
18
|
+
t.timestamps
|
19
|
+
|
20
|
+
t.index ['parent_file_id', 'parent_file_model_type'], name: 'index_other_files_on_parent_id_and_parent_model_type'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|