Sha256: 6db4d39c8502dc9b271ec2926a22d00743544701effc86b9809be732739e6270

Contents?: true

Size: 466 Bytes

Versions: 12

Compression:

Stored size: 466 Bytes

Contents

class SimplifySignup < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.establish_connection :users
    rename_column "people", "home_phone", "phone"
    remove_column "people", "work_phone"
    remove_column "people", "address"
  end

  def self.down
    ActiveRecord::Base.establish_connection :users
    rename_column "people", "phone", "home_phone"
    add_column "people", "work_phone", :string
    add_column "people", "address", :string
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ae_users_legacy-0.6.14 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.13 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.12 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.11 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.10 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.9 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.8 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.7 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.6 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.5 db/migrate/013_simplify_signup.rb
ae_users_legacy-0.6.3 db/migrate/013_simplify_signup.rb
ae_users-0.6.0 db/migrate/013_simplify_signup.rb