class CreateFormilyFiles < ActiveRecord::Migration def change create_table :formily_files do |t| t.integer :input_value_id t.attachment :file t.timestamps null: false end add_index :formily_files, :input_value_id end end