質問編集履歴

1

追加コード

2016/09/30 02:27

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,38 @@
10
10
 
11
11
 
12
12
 
13
+ ```ここに言語を入力
14
+
15
+ class CreateCoMemberImages < ActiveRecord::Migration
16
+
17
+ def change
18
+
19
+ create_table :co_member_images do |t|
20
+
21
+ t.references :co_member, null: false
22
+
23
+ t.binary :data
24
+
25
+ t.string :content_type
26
+
27
+
28
+
29
+ t.timestamps
30
+
31
+ end
32
+
33
+
34
+
35
+ add_index :co_member_images, :co_member_id
36
+
37
+ end
38
+
39
+ end
40
+
41
+
42
+
43
+ ```
44
+
13
45
 
14
46
 
15
47
  [edit.html.erb]