mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 05:02:14 +02:00
added deleted column to reports
This commit is contained in:
parent
b6c0b1864a
commit
7d55141a1a
3 changed files with 11 additions and 5 deletions
|
@ -2,5 +2,5 @@
|
||||||
.row
|
.row
|
||||||
= render 'moderation/moderation_tabs'
|
= render 'moderation/moderation_tabs'
|
||||||
.col-md-9.col-sm-9.col-xs-12
|
.col-md-9.col-sm-9.col-xs-12
|
||||||
- Report.all.reverse_order.each do |r|
|
- Report.where(deleted: false).reverse_order.each do |r|
|
||||||
= render 'moderation/moderationbox', report: r
|
= render 'moderation/moderationbox', report: r
|
5
db/migrate/20141228202825_add_deleted_to_reports.rb
Normal file
5
db/migrate/20141228202825_add_deleted_to_reports.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddDeletedToReports < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :reports, :deleted, :boolean, default: false
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20141227130618) do
|
ActiveRecord::Schema.define(version: 20141228202825) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -102,11 +102,12 @@ ActiveRecord::Schema.define(version: 20141227130618) do
|
||||||
add_index "relationships", ["target_id"], name: "index_relationships_on_target_id", using: :btree
|
add_index "relationships", ["target_id"], name: "index_relationships_on_target_id", using: :btree
|
||||||
|
|
||||||
create_table "reports", force: true do |t|
|
create_table "reports", force: true do |t|
|
||||||
t.string "type", null: false
|
t.string "type", null: false
|
||||||
t.integer "target_id", null: false
|
t.integer "target_id", null: false
|
||||||
t.integer "user_id", null: false
|
t.integer "user_id", null: false
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
t.boolean "deleted", default: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "services", force: true do |t|
|
create_table "services", force: true do |t|
|
||||||
|
|
Loading…
Reference in a new issue