Sha256: 7ce6eb531cc5503401fa775fc29f9a69b88785c109febba10707e0df667fbf9f

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

class AddFooterFieldsToSpreeStores < ActiveRecord::Migration[6.0]
  def change
    add_column :spree_stores, :description, :text unless column_exists?(:spree_stores, :description)
    add_column :spree_stores, :address, :text unless column_exists?(:spree_stores, :address)
    add_column :spree_stores, :contact_phone, :string unless column_exists?(:spree_stores, :contact_phone)
    add_column :spree_stores, :contact_email, :string unless column_exists?(:spree_stores, :contact_email)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_core-4.2.4 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.3.1 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.3 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.2 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.1 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0.rc5 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0.rc4 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0.rc3 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0.rc2 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0.rc1 db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb
spree_core-4.2.0.beta db/migrate/20200430072209_add_footer_fields_to_spree_stores.rb