Sha256: a17fa04b0dd1a7be1b6013c1b38cd03b79861cf3e820585657ac0fe9bd363adf

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

class CreateEffectiveAddresses < ActiveRecord::Migration[6.0]
  def change
    create_table :addresses do |t|
      t.string :addressable_type
      t.integer :addressable_id

      t.string :category, :limit => 64

      t.string :full_name

      t.string :address1
      t.string :address2
      t.string :address3

      t.string :city
      t.string :state_code
      t.string :country_code
      t.string :postal_code

      t.datetime :updated_at
      t.datetime :created_at
    end

    add_index :addresses, [:addressable_type, :addressable_id]
    add_index :addresses, :addressable_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_addresses-1.11.5 db/migrate/101_create_effective_addresses.rb
effective_addresses-1.11.2 db/migrate/101_create_effective_addresses.rb
effective_addresses-1.11.1 db/migrate/101_create_effective_addresses.rb
effective_addresses-1.11.0 db/migrate/101_create_effective_addresses.rb