Sha256: acf96f6c407444b1b1ecb35fdd69148c2f3dfc7e6b43e7b3df32e057ff28bfa2

Contents?: true

Size: 162 Bytes

Versions: 1

Compression:

Stored size: 162 Bytes

Contents

class AddCountryIdToStates < ActiveRecord::Migration
  def change
    add_column :states, :country_id, :integer
    add_foreign_key :states, :countries
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unico-training-7.8.0 db/migrate/20110601172922_add_country_id_to_states.rb