* feat: add per-inbox signature management - Introduced `InboxSignature` model to manage signatures specific to each inbox. - Added API endpoints for fetching, creating, updating, and deleting inbox signatures. - Updated UI components to support inbox-specific signatures, including overrides for signature position and separator. - Implemented a new composable `useInboxSignatures` for managing inbox signatures in the frontend. - Enhanced existing components to utilize inbox signatures, including the reply box and message signature settings. - Added tests for the new inbox signatures functionality, ensuring proper behavior of the API and model validations. - Updated translations for new UI elements related to inbox signatures. * feat: implement inbox access validation and add related tests * feat: enhance inbox signatures fetching and management logic
15 lines
501 B
Ruby
15 lines
501 B
Ruby
class CreateInboxSignatures < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :inbox_signatures do |t|
|
|
t.references :user, null: false, index: false
|
|
t.references :inbox, null: false, index: false
|
|
t.text :message_signature, null: false
|
|
t.string :signature_position, default: 'top', null: false
|
|
t.string :signature_separator, default: 'blank', null: false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :inbox_signatures, %i[user_id inbox_id], unique: true
|
|
end
|
|
end
|