|
@@ -6,7 +6,7 @@ class CreateLiveBroads < ActiveRecord::Migration
|
|
|
# 直播标题
|
|
# 直播标题
|
|
|
t.column :title, :string,:limit => 128, :null=>false
|
|
t.column :title, :string,:limit => 128, :null=>false
|
|
|
#封面
|
|
#封面
|
|
|
- t.column :cover, :string,:limit => 256, :null=>false
|
|
|
|
|
|
|
+ t.column :cover, :string,:limit => 256
|
|
|
#房间号
|
|
#房间号
|
|
|
t.column :room_id, :integer,:null=>false, :default => 0
|
|
t.column :room_id, :integer,:null=>false, :default => 0
|
|
|
#开始时间
|
|
#开始时间
|
|
@@ -16,7 +16,7 @@ class CreateLiveBroads < ActiveRecord::Migration
|
|
|
# 置顶
|
|
# 置顶
|
|
|
t.column :show, :boolean, :default=>false
|
|
t.column :show, :boolean, :default=>false
|
|
|
# 备注
|
|
# 备注
|
|
|
- t.column :remark, :string,:limit => 256, :null=>false
|
|
|
|
|
|
|
+ t.column :remark, :string,:limit => 256
|
|
|
t.timestamps
|
|
t.timestamps
|
|
|
end
|
|
end
|
|
|
add_index :live_broads, :room_id
|
|
add_index :live_broads, :room_id
|