class CreateEasyMLDeploys < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change create_table :easy_ml_deploys do |t| t.bigint :model_id t.bigint :model_history_id t.bigint :retraining_run_id t.bigint :model_file_id t.string :status, null: false t.string :trigger, default: 'manual' t.text :stacktrace t.string :snapshot_id t.timestamps t.index :created_at t.index :model_id t.index :model_history_id t.index :snapshot_id t.index :model_file_id t.index :retraining_run_id t.index :status t.index :trigger end end end