class CreateDataFiles < ActiveRecord::Migration[5.1] def change create_table :data_files do |t| t.string :name t.references :repository, index: true, polymorphic: true t.string :uuid t.timestamps end end end