Add boost states in for real (#270)
* Add boost states in for real * Fix schema issue
This commit is contained in:
parent
f2101410ea
commit
808ea3a466
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue