logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20160905150353_create_media_attachments.rb (359B)


  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