1 2 3 4 5 6 7 8 9 10 11 12 13
class CreateExports < ActiveRecord::Migration def change create_table :exports do |t| t.belongs_to :referential t.string :status t.string :type t.string :options t.timestamps end add_index :exports, :referential_id end end