20160905150353_create_media_attachments.rb 359 B

1234567891011121314
  1. class CreateMediaAttachments < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :media_attachments do |t|
  4. t.integer :status_id, null: true, default: nil
  5. t.attachment :file
  6. t.string :remote_url, null: false, default: ''
  7. t.integer :account_id
  8. t.timestamps
  9. end
  10. add_index :media_attachments, :status_id
  11. end
  12. end