diff --git a/db/migrate/20200506222107_add_resource_recommendations_to_moments.rb b/db/migrate/20200506222107_add_resource_recommendations_to_moments.rb new file mode 100644 index 0000000000..61eafab779 --- /dev/null +++ b/db/migrate/20200506222107_add_resource_recommendations_to_moments.rb @@ -0,0 +1,5 @@ +class AddResourceRecommendationsToMoments < ActiveRecord::Migration[5.2] + def change + add_column :moments, :resource_recommendations, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 8a716a3c90..c476c6015c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_04_19_063936) do +ActiveRecord::Schema.define(version: 2020_05_06_222107) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -145,6 +145,7 @@ t.datetime "secret_share_expires_at" t.datetime "published_at" t.boolean "bookmarked", default: false + t.boolean "resource_recommendations" t.index ["secret_share_identifier"], name: "index_moments_on_secret_share_identifier", unique: true t.index ["slug"], name: "index_moments_on_slug", unique: true end