Sha256: ec5ee8afa6fb7d9f952b36f8f8f5838a3ea7c5b74e36723123b3b839b06d0e3d

Contents?: true

Size: 553 Bytes

Versions: 11

Compression:

Stored size: 553 Bytes

Contents

class CreateEasyMLPredictions < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    unless table_exists?(:easy_ml_predictions)
      create_table :easy_ml_predictions do |t|
        t.bigint :model_id, null: false
        t.bigint :model_history_id
        t.string :prediction_type
        t.jsonb :prediction_value
        t.jsonb :raw_input
        t.jsonb :normalized_input
        t.timestamps

        t.index :model_id
        t.index :model_history_id
        t.index :created_at
      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_predictions.rb.tt
easy_ml-0.2.0.pre.rc51 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc50 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc49 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc48 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc47 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc46 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc45 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc44 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc43 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt
easy_ml-0.2.0.pre.rc41 lib/easy_ml/railtie/templates/migration/create_easy_ml_predictions.rb.tt