add the required integer column and the increment statement when featured

This commit is contained in:
Ralf Teusner
2018-02-02 14:38:28 +01:00
parent 8da9fa1971
commit da23cc22aa
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddTimesFeaturedToRequestForComments < ActiveRecord::Migration
def change
add_column :request_for_comments, :times_featured, :integer, default: 0
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180130172021) do
ActiveRecord::Schema.define(version: 20180202132034) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -281,6 +281,7 @@ ActiveRecord::Schema.define(version: 20180130172021) do
t.integer "submission_id"
t.text "thank_you_note"
t.boolean "full_score_reached", default: false
t.integer "times_featured", default: 0
end
create_table "searches", force: :cascade do |t|