Add additional social media fields to contacts

+ YouTube
+ Blog

Simplify logic in the view, and refactor the test #BetterPlace
This commit is contained in:
James Mason 2018-11-13 13:47:20 -08:00 committed by Henne Vogelsang
parent cd150aaf21
commit a3adf8318d
6 changed files with 51 additions and 35 deletions

View file

@ -0,0 +1,6 @@
class AddYoutubeAndBlogToContacts < ActiveRecord::Migration[5.0]
def change
add_column :contacts, :youtube, :string
add_column :contacts, :blog, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20181009000259) do
ActiveRecord::Schema.define(version: 20181113195810) do
create_table "answers", force: :cascade do |t|
t.string "title"
@ -123,6 +123,8 @@ ActiveRecord::Schema.define(version: 20181009000259) do
t.datetime "updated_at"
t.string "sponsor_email"
t.string "mastodon"
t.string "youtube"
t.string "blog"
end
create_table "delayed_jobs", force: :cascade do |t|