Sha256: c19f16423de6998dd757e245025e37112de704c99c17a80c5e4dc422b2ef00cf

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

class AddCamaEcommerceStructurePlugin < ActiveRecord::Migration
  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

5 entries across 5 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.1 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb
camaleon_ecommerce-2.0.0 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb
camaleon_ecommerce-1.2.1 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb
camaleon_ecommerce-1.2 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb
camaleon_ecommerce-1.1 db/migrate/20160502221327_add_cama_ecommerce_structure_plugin.rb