Sha256: a753a6c6b3c329aeb418f47fc40d74fa88eae5c717a483651a21a1dd2f68af87

Contents?: true

Size: 249 Bytes

Versions: 11

Compression:

Stored size: 249 Bytes

Contents

class AddFieldsToNode < ActiveRecord::Migration[5.2]
  def change
    if "Alchemy::Node".safe_constantize
      add_column :alchemy_nodes, :custom_model_klass, :string
      add_column :alchemy_nodes, :custom_model_method, :string
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.1.5 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.1.4 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.1.3 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.1.2 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.1.1 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.1.0 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-2.2.2 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-3.0.0 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-2.2.1 db/migrate/20200424184007_add_fields_to_node.rb
alchemy-custom-model-2.2.0 db/migrate/20200424184007_add_fields_to_node.rb