Skip to content

Latest commit

 

History

History
68 lines (55 loc) · 1.91 KB

active_associations-ac-tp.md

File metadata and controls

68 lines (55 loc) · 1.91 KB

$rails g model CreditCard number:string, exp_date:string owner_name:string

class CreateCreditCards < ActiveRecord::Migration[7.0] def change create_table :credit_cards do |t| t.string :number t.string :exp_date t.string :owner_name

  t.timestamps
end

end end

% Person.create name: "Joe", phone: "555-3456" % Person.all