chore: Add contact note model (#2462)

This commit is contained in:
Muhsin Keloth
2021-06-21 15:16:26 +05:30
committed by GitHub
parent f809431074
commit 3d748aa8d4
8 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class CreateNotes < ActiveRecord::Migration[6.0]
def change
create_table :notes do |t|
t.text :content, null: false
t.references :account, foreign_key: true, null: false
t.references :contact, foreign_key: true, null: false
t.references :user, foreign_key: true
t.timestamps
end
end
end