Sha256: b1ac08c0ed273c23c31b3c38648a4f83a8bce1703b30639831403101570f5f6e

Contents?: true

Size: 625 Bytes

Versions: 4

Compression:

Stored size: 625 Bytes

Contents

# lib/railtie/generators/templates/migration/create_easy_ml_models.rb.tt
class CreateEasyMLModels < ActiveRecord::Migration[6.0]
  def change
    create_table :easy_ml_models do |t|
      t.string :name, null: false
      t.boolean :is_live, default: false
      t.string :version, null: false
      t.string :ml_model
      t.string :task
      t.json :metrics, default: []
      t.json :file, null: false

      t.timestamps

      t.index :created_at
      t.index :name
      t.index :version
      t.index :is_live
      t.index [:name, :version], unique: true
      t.index [:name, :version, :is_live]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
easy_ml-0.1.4 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.1.3 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.1.2 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.1.1 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt