Sha256: b8c5462c52739b09dee9cf4cc8233119eb360770862ca3153b40e52ed4355443

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

class RemoveNullConstraintsFromSpreeTables < SpreeExtension::Migration[4.2]
  def up
    change_column :spree_properties, :presentation, :string, null: true
    change_column :spree_taxonomies, :name,         :string, null: true
    change_column :spree_taxons,     :name,         :string, null: true
  end

  def down
    change_column :spree_properties, :presentation, :string, null: false
    change_column :spree_taxonomies, :name,         :string, null: false
    change_column :spree_taxons,     :name,         :string, null: false
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_mobility-1.4.0 db/migrate/20220412095648_remove_null_constraints_from_spree_tables.rb
spree_mobility-1.3.0 db/migrate/20220412095648_remove_null_constraints_from_spree_tables.rb
spree_mobility-1.2.0 db/migrate/20220412095648_remove_null_constraints_from_spree_tables.rb
spree_mobility-1.1.0 db/migrate/20220412095648_remove_null_constraints_from_spree_tables.rb
spree_mobility-1.0.0 db/migrate/20220412095648_remove_null_constraints_from_spree_tables.rb