闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
359 B

  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