mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
add column to users
This commit is contained in:
8
db/migrate/20200724085032_add_column_to_table_users.rb
Normal file
8
db/migrate/20200724085032_add_column_to_table_users.rb
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
class AddColumnToTableUsers < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :users, :description, :string, default: ""
|
||||||
|
add_column :users, :sponsor_certification, :integer, default: 0
|
||||||
|
add_column :users, :sponsor_num, :integer, default: 0
|
||||||
|
add_column :users, :sponsored_num, :integer, default: 0
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -55,7 +55,7 @@ CREATE TABLE `applied_contests` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for applied_messages
|
-- Table structure for applied_messages
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `applied_messages`;
|
DROP TABLE IF /home/qyzh/datadict.txtpplied_messages`;
|
||||||
CREATE TABLE `applied_messages` (
|
CREATE TABLE `applied_messages` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`user_id` int(11) DEFAULT NULL,
|
`user_id` int(11) DEFAULT NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user