Sha256: 103342d60d914681957b87a9ab9de60c0823e88cfc272c57f967ad87b8661fea

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

class CreateAddressesZipcodes < ActiveRecord::Migration[5.0]
  def change
    create_table :addresses_zipcodes do |t|
      t.string :street
      t.references :city, index: true
      t.references :neighborhood, index: true
      t.string :number

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
addresses-1.0.11 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.9 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.8 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.7 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.6 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.5 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.4 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.3 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.2 db/migrate/20160920172944_create_addresses_zipcodes.rb
addresses-1.0.1 db/migrate/20160920172944_create_addresses_zipcodes.rb