Sha256: 22a180a39a2f9ce30f204f925ca5065e1a4b70a04f407ca1ea9f719d88e80fa4

Contents?: true

Size: 904 Bytes

Versions: 11

Compression:

Stored size: 904 Bytes

Contents

class CreateEasyMLDatasets < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    unless table_exists?(:easy_ml_datasets)
      create_table :easy_ml_datasets do |t|
        t.string :name, null: false
        t.string :description
        t.string :dataset_type
        t.string :status
        t.string :version
        t.bigint :datasource_id
        t.string :root_dir
        t.json :configuration
        t.bigint :num_rows
        t.string :workflow_status
        t.json :statistics
        t.json :preprocessor_statistics
        t.json :schema
        t.datetime :refreshed_at

        t.timestamps

        t.index :created_at
        t.index :refreshed_at
        t.index :name
        t.index :status
        t.index [:name, :status]
        t.index :datasource_id
        t.index :dataset_type
        t.index :workflow_status
      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_datasets.rb.tt
easy_ml-0.2.0.pre.rc51 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc50 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc49 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc48 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc47 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc46 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc45 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc44 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc43 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt
easy_ml-0.2.0.pre.rc41 lib/easy_ml/railtie/templates/migration/create_easy_ml_datasets.rb.tt