20170913000752_create_site_uploads.rb 289 B

123456789101112
  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. t.attachment :file
  7. t.json :meta
  8. t.timestamps
  9. end
  10. end
  11. end