Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quizモデルの作成 #9

Open
t-tonchim opened this issue Jan 21, 2016 · 5 comments
Open

quizモデルの作成 #9

t-tonchim opened this issue Jan 21, 2016 · 5 comments
Assignees

Comments

@t-tonchim
Copy link
Member

マイグレーションの制約とバリデーションもお願いします。

@masahiro-yamazaki
Copy link
Contributor

◆バリデーション
belongs_to: quiz_title
has_many: answers

(id: presence, unique) ←自動採番
quiz_statement: presence
title_id: presence

@masahiro-yamazaki
Copy link
Contributor

◆マイグレーション
integer id: not null
varchar(256) quiz_statement: not null
integer title_id: not null

@masahiro-yamazaki
Copy link
Contributor

以下プルリクエストを作成しました!
#25

@masahiro-yamazaki
Copy link
Contributor

・プルリクエストにも書きましたが、quiz_tilte_idのカラム名にしたいです。
・今日調べたのですが、quizの複数形はquizzezだそうです。
http://plaza.rakuten.co.jp/yizumi/diary/200510110001/

@masataka-ohara masataka-ohara self-assigned this Mar 10, 2016
@masataka-ohara
Copy link
Contributor

マージしました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants