class CreateSeries < ActiveRecord::Migration def change create_table :series do |t| t.references :report, index: true, foreign_key: true t.string :name t.string :sql_key t.timestamps null: false end end end