Add boost states in for real (#270)

* Add boost states in for real

* Fix schema issue
This commit is contained in:
Ben Halpern 2018-05-02 14:14:49 -04:00 committed by GitHub
parent f2101410ea
commit 808ea3a466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,6 @@
class AddBoostStatesToArticles < ActiveRecord::Migration[5.1]
def change
add_column :articles, :boost_states, :jsonb, null: false, default: {}
add_index :articles, :boost_states, using: :gin
end
end

View file

@ -8,9 +8,9 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# 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: 20180502160428) do
ActiveRecord::Schema.define(version: 20180502174301) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"