Sha256: 7c7cc8cd24b040892809bcdbb7d95cf0ceab164775249715f9dd6a57aa2c020e

Contents?: true

Size: 461 Bytes

Versions: 9

Compression:

Stored size: 461 Bytes

Contents

class CreateSolidusMpCustomers < ActiveRecord::Migration[7.1]
  def change
    create_table :solidus_mp_customers do |t|
      t.string :external_id
      t.string :email
      t.string :first_name
      t.string :identification_type
      t.string :tax_id
      t.integer :spree_user_id, null: false

      t.timestamps
      t.foreign_key :spree_users, column: :spree_user_id
    end

    add_index :solidus_mp_customers, :external_id, unique: true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_mp-1.1.8 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.7 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.6 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.5 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.4 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.3 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.2 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.1 db/migrate/20240715124647_create_solidus_mp_customers.rb
solidus_mp-1.1.0 db/migrate/20240715124647_create_solidus_mp_customers.rb