1
0

20170913000752_create_site_uploads.rb 258 B

12345678910
  1. class CreateSiteUploads < ActiveRecord::Migration[5.1]
  2. def change
  3. create_table :site_uploads do |t|
  4. t.string :var, default: '', null: false, index: { unique: true }
  5. t.attachment :file
  6. t.json :meta
  7. t.timestamps
  8. end
  9. end
  10. end