mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +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
|
||||
Reference in New Issue
Block a user