質問編集履歴
2
文章修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -238,6 +238,8 @@
|
|
238
238
|
|
239
239
|
https://mbleigh.lighthouseapp.com/projects/10223/tickets/7-ability-to-set-habtm-associations
|
240
240
|
|
241
|
+
|
242
|
+
|
241
243
|
上記サイトを参照し一度QuestionnaireFormを作成した後そこにquestionnaire_tag_idsを指定する方法をとりましたが変わらず上記エラーが発生してしまいます。
|
242
244
|
|
243
245
|
|
1
DBfileの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,58 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
```
|
72
|
+
|
73
|
+
create_table "questionnaire_form_tags", force: :cascade do |t|
|
74
|
+
|
75
|
+
t.bigint "questionnaire_tag_id", null: false
|
76
|
+
|
77
|
+
t.bigint "questionnaire_form_id", null: false
|
78
|
+
|
79
|
+
t.datetime "created_at", precision: 6, null: false
|
80
|
+
|
81
|
+
t.datetime "updated_at", precision: 6, null: false
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
create_table "questionnaire_forms", force: :cascade do |t|
|
88
|
+
|
89
|
+
t.bigint "questionnaire_id", null: false
|
90
|
+
|
91
|
+
t.string "title", null: false
|
92
|
+
|
93
|
+
t.integer "display_order", null: false
|
94
|
+
|
95
|
+
t.datetime "created_at", precision: 6, null: false
|
96
|
+
|
97
|
+
t.datetime "updated_at", precision: 6, null: false
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
create_table "questionnaire_tags", force: :cascade do |t|
|
104
|
+
|
105
|
+
t.string "title", null: false
|
106
|
+
|
107
|
+
t.integer "display_order", null: false
|
108
|
+
|
109
|
+
t.datetime "created_at", precision: 6, null: false
|
110
|
+
|
111
|
+
t.datetime "updated_at", precision: 6, null: false
|
112
|
+
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
|
71
123
|
questionnaire_form.rb(seed作成している部分)
|
72
124
|
|
73
125
|
```
|