Fix dev seed specs

This commit is contained in:
rgarcia
2018-03-23 19:57:51 +01:00
parent b35c750865
commit c9cad05a95
2 changed files with 2 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ section "Creating comment notifications" do
debate = Debate.create!(author: user,
title: Faker::Lorem.sentence(3).truncate(60),
description: "<p>#{Faker::Lorem.paragraphs.join('</p><p>')}</p>",
tag_list: Tag.all.sample(3).join(','),
tag_list: ActsAsTaggableOn::Tag.all.sample(3).join(','),
geozone: Geozone.reorder("RANDOM()").first,
terms_of_service: "1")

View File

@@ -12,6 +12,7 @@
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180320104823) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "unaccent"