...
|
...
|
@@ -44,7 +44,7 @@ class Room extends \yii\db\ActiveRecord |
|
|
[['app', 'secret'], 'string', 'max' => 50],
|
|
|
[['pic', 'background_pic'], 'string', 'max' => 255],
|
|
|
[['room_id'], 'unique'],
|
|
|
[['room_id'], 'number'],
|
|
|
[['room_id'], 'numerical', 'integerOnly'=>true],
|
|
|
[['secret'], 'unique'],
|
|
|
[['pic', 'background_pic'], 'required'],
|
|
|
];
|
...
|
...
|
|