Add proper twitch url migration (#2561)

* Add proper twitch url migration

* Change schema version
This commit is contained in:
Ben Halpern 2019-04-25 17:38:21 -04:00 committed by GitHub
parent 1578befdf1
commit a711e2246e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
class AddTwitchUrlToUsers < ActiveRecord::Migration[5.2]
def change
add_column :users, :twitch_url, :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: 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"