質問編集履歴

1

補足

2018/11/26 23:59

投稿

takeke
takeke

スコア60

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,47 @@
59
59
  現在どう対処していいか何もわからず困っていますので、少しでもアドバイスなどいただけると助かります。
60
60
 
61
61
  よろしくおねがいいたしますm(__)m
62
+
63
+
64
+
65
+ 補足:
66
+
67
+ ```rails
68
+
69
+ create_table "users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
70
+
71
+ t.string "user_key", limit: 20, null: false
72
+
73
+ t.integer "photo_id_id", null: false
74
+
75
+ t.integer "student_card_id", null: false
76
+
77
+ t.string "user_name", limit: 20, null: false
78
+
79
+ t.datetime "created_at", null: false
80
+
81
+ t.datetime "updated_at", null: false
82
+
83
+ t.integer "is_deleted", limit: 1, default: 0, null: false
84
+
85
+ t.integer "lock_version", default: 0
86
+
87
+ end
88
+
89
+
90
+
91
+ create_table "user_files", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
92
+
93
+ t.binary "image", limit: 16777215
94
+
95
+ t.datetime "created_at", null: false
96
+
97
+ t.datetime "updated_at", null: false
98
+
99
+ t.integer "is_deleted", limit: 1, default: 0, null: false
100
+
101
+ t.integer "lock_version", default: 0
102
+
103
+ end
104
+
105
+ ```