feat: Add CSAT response APIs (#2503)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sojan Jose
2021-06-29 20:59:41 +05:30
committed by GitHub
parent 2e71006f9d
commit dd9d5e410c
28 changed files with 358 additions and 23 deletions

View File

@@ -0,0 +1,15 @@
class CreateCsatSurveyResponses < ActiveRecord::Migration[6.0]
def change
create_table :csat_survey_responses do |t|
t.references :account, null: false, foreign_key: true
t.references :conversation, null: false, foreign_key: true
t.references :message, null: false, foreign_key: true, index: { unique: true }
t.integer :rating, null: false
t.text :feedback_message
t.references :contact, null: false, foreign_key: true
t.references :assigned_agent, foreign_key: { to_table: :users }
t.timestamps
end
end
end