Sha256: 882f9384cf0bd24c591d7dc236d13491c14ada5c03fec19f09b2489869dc7211

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

class AddCamaEcommerceStructurePlugin < CamaManager.migration_class
  def change
    unless table_exists? 'plugins_order_details'
      create_table :plugins_order_details do |t|
        t.integer :order_id
        t.string :customer, :email, :phone
        t.datetime :received_at, :accepted_at, :shipped_at, :closed_at
        t.timestamps
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.4 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb
camaleon_ecommerce-2.0.3 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb
camaleon_ecommerce-2.0.2 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb