From a711e2246e7f4ca87afcd247a63d5f0f773836f8 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Thu, 25 Apr 2019 17:38:21 -0400 Subject: [PATCH] Add proper twitch url migration (#2561) * Add proper twitch url migration * Change schema version --- db/migrate/20180707162348_add_social_icons_to_user.rb | 1 - db/migrate/20190425210432_add_twitch_url_to_users.rb | 5 +++++ db/schema.rb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20190425210432_add_twitch_url_to_users.rb diff --git a/db/migrate/20180707162348_add_social_icons_to_user.rb b/db/migrate/20180707162348_add_social_icons_to_user.rb index f57cc90d4..ec4543dcc 100644 --- a/db/migrate/20180707162348_add_social_icons_to_user.rb +++ b/db/migrate/20180707162348_add_social_icons_to_user.rb @@ -5,6 +5,5 @@ class AddSocialIconsToUser < ActiveRecord::Migration[5.1] add_column :users, :linkedin_url, :string add_column :users, :behance_url, :string add_column :users, :dribbble_url, :string - add_column :users, :twitch_url, :string end end diff --git a/db/migrate/20190425210432_add_twitch_url_to_users.rb b/db/migrate/20190425210432_add_twitch_url_to_users.rb new file mode 100644 index 000000000..1e5c3b9e5 --- /dev/null +++ b/db/migrate/20190425210432_add_twitch_url_to_users.rb @@ -0,0 +1,5 @@ +class AddTwitchUrlToUsers < ActiveRecord::Migration[5.2] + def change + add_column :users, :twitch_url, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 441c40d7b..0efe783d9 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: 2019_04_17_171020) do +ActiveRecord::Schema.define(version: 2019_04_25_210432) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"