Browse Source

add column to users

tags/v1
wyx 6 years ago
parent
commit
8e2cf4ecc0
3 changed files with 785 additions and 777 deletions
  1. +776
    -776
      app/controllers/application_controller.rb
  2. +8
    -0
      db/migrate/20200724085032_add_column_to_table_users.rb
  3. +1
    -1
      db/structure.sql

+ 776
- 776
app/controllers/application_controller.rb
File diff suppressed because it is too large
View File


+ 8
- 0
db/migrate/20200724085032_add_column_to_table_users.rb View 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

+ 1
- 1
db/structure.sql View File

@@ -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…
Cancel
Save