Showing
1 changed file
with
1 additions
and
1 deletions
@@ -44,7 +44,7 @@ class Room extends \yii\db\ActiveRecord | @@ -44,7 +44,7 @@ class Room extends \yii\db\ActiveRecord | ||
44 | [['app', 'secret'], 'string', 'max' => 50], | 44 | [['app', 'secret'], 'string', 'max' => 50], |
45 | [['pic', 'background_pic'], 'string', 'max' => 255], | 45 | [['pic', 'background_pic'], 'string', 'max' => 255], |
46 | [['room_id'], 'unique'], | 46 | [['room_id'], 'unique'], |
47 | - [['room_id'], 'number'], | 47 | + [['room_id'], 'numerical', 'integerOnly'=>true], |
48 | [['secret'], 'unique'], | 48 | [['secret'], 'unique'], |
49 | [['pic', 'background_pic'], 'required'], | 49 | [['pic', 'background_pic'], 'required'], |
50 | ]; | 50 | ]; |
-
Please register or login to post a comment