Chatwoot/db/migrate/20170426083945_create_attachments.rb
Pranav Raj Sreepuram 2a34255e0b Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com>
Co-authored-by: Manoj <manojmj92@gmail.com>
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-08-14 15:18:44 +05:30

14 lines
404 B
Ruby

class CreateAttachments < ActiveRecord::Migration[5.0]
def change
create_table :attachments do |t|
t.string :file
t.integer :file_type, default: 0
t.string :external_url
t.integer :coordinates_lat, default: 0
t.integer :coordinates_long, default: 0
t.integer :message_id, null: false
t.integer :account_id, null: false
t.timestamps
end
end
end