Upgrade to Pro — share decks privately, control downloads, hide ads and more …

startupでもrails使うなら これだけはやっとけ的 tips集

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

startupでもrails使うなら これだけはやっとけ的 tips集

第一回スタートアップRails勉強会でLTしたスライドです

Avatar for Kazuhiro Serizawa

Kazuhiro Serizawa

September 27, 2016
Tweet

More Decks by Kazuhiro Serizawa

Other Decks in Programming

Transcript

  1. About me • Kazuhiro Serizawa • github: :serihiro • work_at:

    • work: :serverside engineer(rails) • like: %i(ruby java erlang c)
  2. class Reservation < ActiveRecord::Base end class CreateReservations < ActiveRecord::Migration def

    change create_table :reservations do |t| t.integer :restaurant_id, null: true t.integer :number, null: true t.datetime :from, null: true t.datetime :to, null: true t.integer :status, null: true t.timestamps null: false end end end ͦͷ1 ModelͷValidation͸࠷ॳ͔ΒೖΕΔ