Sha256: 91fcb90d206f344d151f7c72eee137454a3a532ca8618cf2110ecb550a64ba41

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

class CreateSolidusPaypalBraintreeCustomers < SolidusSupport::Migration[4.2]
  def change
    create_table :solidus_paypal_braintree_customers do |t|
      t.references :user
      t.string :braintree_customer_id
    end

    add_index :solidus_paypal_braintree_customers, :user_id, unique: true, name: "index_braintree_customers_on_user_id"
    add_index :solidus_paypal_braintree_customers, :braintree_customer_id, unique: true, name: "index_braintree_customers_on_braintree_customer_id"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_paypal_braintree-0.4.0 db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb
solidus_paypal_braintree-0.3.0 db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb
solidus_paypal_braintree-0.2.0 db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb
solidus_paypal_braintree-0.1.0 db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb