Sha256: 60dc1f493467c97281276fcd74df4b66a878f57482bcdae1c4875cad1b5e8a8f

Contents?: true

Size: 750 Bytes

Versions: 11

Compression:

Stored size: 750 Bytes

Contents

class CreateEasyMLDeploys < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    unless table_exists?(:easy_ml_deploys)
      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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc52 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc51 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc50 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc49 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc48 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc47 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc46 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc45 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc44 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc43 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt
easy_ml-0.2.0.pre.rc41 lib/easy_ml/railtie/templates/migration/create_easy_ml_deploys.rb.tt