diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb new file mode 100644 index 000000000..e1b6e1ecb --- /dev/null +++ b/config/initializers/active_storage.rb @@ -0,0 +1 @@ +ActiveStorage::Service.url_expires_in = 1.hour diff --git a/db/migrate/20190226160356_add_procedure_id_index_to_types_de_piece_justificative.rb b/db/migrate/20190226160356_add_procedure_id_index_to_types_de_piece_justificative.rb new file mode 100644 index 000000000..bc4579cd2 --- /dev/null +++ b/db/migrate/20190226160356_add_procedure_id_index_to_types_de_piece_justificative.rb @@ -0,0 +1,5 @@ +class AddProcedureIdIndexToTypesDePieceJustificative < ActiveRecord::Migration[5.2] + def change + add_index :types_de_piece_justificative, :procedure_id + end +end