Chatwoot/db/migrate/20210618073042_create_notes.rb

12 lines
329 B
Ruby
Raw Permalink Normal View History

2021-06-21 09:46:26 +00:00
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