More Related Content
More from Sachirou Inoue (20)
ActiveHash
- 5. ⽇本の休⽇ {:holiday_jp, "~> 0.2.2"}
ちゃんと動く優先度附きキュー {:pqueue2, "~> 0.1.0"}
Streamを圧縮/伸⻑ {:stream_gzip, "~> 0.1.0"}
Streamのhash値を計算 {:stream_hash, "~> 0.1.0"}
標準Lint集 {:inner_cotton, github: "ne-sachirou/inner_cotton", only:
[:dev, :test], runtime: false}
- 17. ActiveHash
class Sample < ActiveHashExt::Base
column :id, :integer, comemnt: “ID”
column :name, :string, comment: “名前”
column :start_at, :datatime, comment: “開始時刻”
end
Sample.find_by name: “Ruby”