Sha256: 0ae7dbe3f187fb00a0fba7b4df96bda6387ed5e58c5f431380c278e0593d15bd

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

# This migration comes from spree (originally 20150731201146)
class AddSpreeUserAddresses < ActiveRecord::Migration
  def change
    create_table :spree_user_addresses do |t|
      t.integer :user_id, null: false
      t.integer :address_id, null: false
      t.boolean :default, default: false
      t.boolean :archived, default: false
      t.timestamps null: false
    end

    add_index :spree_user_addresses, :user_id
    add_index :spree_user_addresses, :address_id
    add_index :spree_user_addresses, [:user_id, :address_id], unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103611_add_spree_user_addresses.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112563_add_spree_user_addresses.spree.rb