20170913000752_create_site_uploads.rb 488 B

123456789101112131415161718
  1. # frozen_string_literal: true
  2. class CreateSiteUploads < ActiveRecord::Migration[5.1]
  3. def change
  4. create_table :site_uploads do |t|
  5. t.string :var, default: '', null: false, index: { unique: true }
  6. # The following corresponds to `t.attachment :file` in an older version of Paperclip
  7. t.string :file_file_name
  8. t.string :file_content_type
  9. t.integer :file_file_size
  10. t.datetime :file_updated_at
  11. t.json :meta
  12. t.timestamps
  13. end
  14. end
  15. end