Sha256: d2104ac8a7674279cdd77039581bf6bc416017287a3ed8dea415a1696f94595f

Contents?: true

Size: 687 Bytes

Versions: 12

Compression:

Stored size: 687 Bytes

Contents

class CreatePeople < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.establish_connection :users
    create_table :people do |t|
      t.column :firstname, :string
      t.column :lastname, :string
      t.column :gender, :string
      t.column :nickname, :string
      t.column :address, :string
      t.column :home_phone, :string
      t.column :work_phone, :string
      t.column :best_call_time, :string
      t.column :birthdate, :datetime
      t.column :account_id, :integer
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    ActiveRecord::Base.establish_connection :users
    drop_table :people
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

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