Sha256: 820c25fe13a0dbc1f5427152f3ee84161e3f7a8b8db3cb21a4f76faa4a6d2d1b

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 Bytes

Contents

class AddAddressToUser < ActiveRecord::Migration
  
  def change
    
    add_column :users, :address_street, :string
    add_column :users, :address_city,   :string
    add_column :users, :address_state,  :string
    add_column :users, :address_zip,    :string
    
    create_table :addresses do |t|
      t.string :street
      t.string :city
      t.string :state
      t.string :zip
      t.timestamps
    end
    
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyper-mesh-0.6.0 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb
hyper-mesh-0.5.4 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb
hyper-mesh-0.5.3 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb
hyper-mesh-0.5.2 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb
hyper-mesh-0.5.1 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb
hyper-mesh-0.5.0 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb
hyper-mesh-0.4.0 reactive_record_test_app/db/migrate/20150729195556_add_address_to_user.rb