Sha256: e217ed14d8f9baf7cc52eb110f0790151ef57585a6a31fbc00872a091d999217
Contents?: true
Size: 929 Bytes
Versions: 11
Compression:
Stored size: 929 Bytes
Contents
class CreateEasyMLColumns < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change unless table_exists?(:easy_ml_columns) create_table :easy_ml_columns do |t| t.bigint :dataset_id, null: false t.string :name, null: false t.string :description t.string :datatype # The symbol representation (e.g., 'float', 'integer') t.string :polars_datatype # The full Polars class name (e.g., 'Polars::Float64') t.boolean :is_target t.boolean :hidden, default: false t.boolean :drop_if_null, default: false t.json :preprocessing_steps t.json :sample_values # Store up to 3 sample values t.json :statistics t.timestamps t.index [:dataset_id, :name], unique: true t.index :datatype t.index :hidden t.index :drop_if_null t.index :is_target end end end end
Version data entries
11 entries across 11 versions & 1 rubygems