2a34255e0b
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
14 lines
404 B
Ruby
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
|