Sha256: 596e3fec7a4123c5e4a7f14744237171294100700bc11dc70e0564069a868d07

Contents?: true

Size: 1012 Bytes

Versions: 11

Compression:

Stored size: 1012 Bytes

Contents

# lib/railtie/generators/templates/migration/create_easy_ml_models.rb.tt
class CreateEasyMLModels < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    unless table_exists?(:easy_ml_models)
      create_table :easy_ml_models do |t|
        t.string :name, null: false
        t.string :model_type
        t.string :status
        t.bigint :dataset_id
        t.bigint :model_file_id
        t.json :configuration
        t.string :version, null: false
        t.string :root_dir
        t.json :file
        t.string :sha
        t.datetime :last_trained_at
        t.boolean :is_training

        t.timestamps

        t.index :created_at
        t.index :last_trained_at
        t.index :name
        t.index :version
        t.index :status
        t.index [:name, :status]
        t.index [:name, :version]
        t.index :dataset_id
        t.index :model_type
        t.index :model_file_id
        t.index :sha
        t.index :is_training
      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_models.rb.tt
easy_ml-0.2.0.pre.rc51 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc50 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc49 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc48 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc47 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc46 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc45 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc44 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc43 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt
easy_ml-0.2.0.pre.rc41 lib/easy_ml/railtie/templates/migration/create_easy_ml_models.rb.tt