add column to users
This commit is contained in:
parent
38193dff54
commit
8e2cf4ecc0
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue