Description:
add remark and enable for user
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r476:4ff0dd0be8a1 - - 3 files changed: 11 inserted, 1 deleted
@@ -0,0 +1,6 | |||
|
1 | + class AddMoreToUsers < ActiveRecord::Migration | |
|
2 | + def change | |
|
3 | + add_column :users, :enabled, :boolean, default: 1 | |
|
4 | + add_column :users, :remark, :string | |
|
5 | + end | |
|
6 | + end |
@@ -34,6 +34,7 | |||
|
34 | 34 | %th Activated? |
|
35 | 35 | %th Logged in |
|
36 | 36 | %th Contest(s) |
|
37 | + %th Remark | |
|
37 | 38 | - @problems.each do |p| |
|
38 | 39 | %th= p.name |
|
39 | 40 | %th Total |
@@ -49,6 +50,7 | |||
|
49 | 50 | %td= sc[i].activated |
|
50 | 51 | %td= sc[i].try(:contest_stat).try(:started_at)!=nil ? 'yes' : 'no' |
|
51 | 52 | %td= sc[i].contests.collect {|c| c.name}.join(', ') |
|
53 | + %td= sc[i].remark | |
|
52 | 54 | - else |
|
53 | 55 | %td= sc[i][0] |
|
54 | 56 | - total += sc[i][0] |
@@ -11,7 +11,7 | |||
|
11 | 11 | # |
|
12 | 12 | # It's strongly recommended to check this file into your version control system. |
|
13 | 13 | |
|
14 |
- ActiveRecord::Schema.define(:version => 201 |
|
|
14 | + ActiveRecord::Schema.define(:version => 20150203153534) do | |
|
15 | 15 | |
|
16 | 16 | create_table "announcements", :force => true do |t| |
|
17 | 17 | t.string "author" |
@@ -239,6 +239,8 | |||
|
239 | 239 | t.boolean "activated", :default => false |
|
240 | 240 | t.datetime "created_at" |
|
241 | 241 | t.datetime "updated_at" |
|
242 | + t.boolean "enabled", :default => true | |
|
243 | + t.string "remark" | |
|
242 | 244 | end |
|
243 | 245 | |
|
244 | 246 | add_index "users", ["login"], :name => "index_users_on_login", :unique => true |
You need to be logged in to leave comments.
Login now