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