Sha256: 8696398dbb9f9e14156dd641d5c55bb153b355a7b3a26e04361a311a5922b50d

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

Contents

class CreateEasyMLFeatures < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    unless table_exists?(:easy_ml_features)
      create_table :easy_ml_features do |t|
        t.bigint :dataset_id, null: false
        t.string :name
        t.bigint :version
        t.string :feature_class, null: false
        t.integer :feature_position
        t.integer :batch_size
        t.boolean :needs_fit
        t.string :sha
        t.string :primary_key, array: true
        t.datetime :applied_at
        t.datetime :fit_at
        t.bigint :refresh_every

        t.timestamps

        t.index %i[dataset_id feature_position], name: "idx_features_on_dataset_and_position"
        t.index %i[dataset_id name], unique: true, name: "idx_features_on_dataset_and_name"
        t.index :feature_class
        t.index :applied_at
        t.index :name
        t.index :version
        t.index :sha
        t.index :batch_size
        t.index :needs_fit
        t.index :fit_at
        t.index :refresh_every
      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_features.rb.tt
easy_ml-0.2.0.pre.rc51 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc50 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc49 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc48 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc47 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc46 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc45 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc44 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc43 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc41 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt