Sha256: bbf5a54cbfd72360bc129eb17b3d915bd0c7f6a696a066472ff5a65cf12cc4d1

Contents?: true

Size: 958 Bytes

Versions: 27

Compression:

Stored size: 958 Bytes

Contents

class CreateEasyMLFeatures < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc27 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc26 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc25 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc24 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc23 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc22 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc21 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc20 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc19 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc18 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc17 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc16 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc15 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc14 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc13 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc12 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc11 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc10 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc9 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt
easy_ml-0.2.0.pre.rc8 lib/easy_ml/railtie/templates/migration/create_easy_ml_features.rb.tt