Add API to upload media attachments
This commit is contained in:
parent
05001d54d1
commit
ae1fac0062
19 changed files with 139 additions and 3 deletions
14
db/migrate/20160905150353_create_media_attachments.rb
Normal file
14
db/migrate/20160905150353_create_media_attachments.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class CreateMediaAttachments < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :media_attachments do |t|
|
||||
t.integer :status_id, null: true, default: nil
|
||||
t.attachment :file
|
||||
t.string :remote_url, null: false, default: ''
|
||||
t.integer :account_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :media_attachments, :status_id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue