Added 'read' check; message name is only bold if unread
This commit is contained in:
@@ -6,7 +6,9 @@ class CreateMessages < ActiveRecord::Migration
|
||||
t.references :user_target
|
||||
t.references :user_editor
|
||||
t.references :user_hidden
|
||||
t.datetime :created_at
|
||||
t.boolean :read, default: false
|
||||
|
||||
t.timestamps null: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
class AddUserEditorToMessages < ActiveRecord::Migration
|
||||
def change
|
||||
add_reference :messages, :user_editor
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170613144233) do
|
||||
ActiveRecord::Schema.define(version: 20170613021450) do
|
||||
|
||||
create_table "blogposts", force: :cascade do |t|
|
||||
t.string "title", limit: 191
|
||||
@@ -89,11 +89,12 @@ ActiveRecord::Schema.define(version: 20170613144233) do
|
||||
t.text "text", limit: 65535
|
||||
t.integer "user_sender_id", limit: 4
|
||||
t.integer "user_target_id", limit: 4
|
||||
t.integer "user_editor_id", limit: 4
|
||||
t.integer "user_hidden_id", limit: 4
|
||||
t.boolean "read", default: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "subject", limit: 191
|
||||
t.integer "user_editor_id", limit: 4
|
||||
end
|
||||
|
||||
create_table "register_tokens", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user