Added welcome and profile actions to the my controller

This commit is contained in:
Christoph Haas 2017-04-23 13:37:48 +02:00
parent 8e4dd058b6
commit 020a864736
12 changed files with 125 additions and 19 deletions

View file

@ -0,0 +1,7 @@
# Previous local accounts have NULL as its value for the 'provider'.
# Turn that into an explicit 'local' string.
class ChangeUsersDefaultProviderLocal < ActiveRecord::Migration[5.0]
def change
execute "update users set provider='local' where provider is null"
end
end

View file

@ -0,0 +1,5 @@
class AddAdminFieldToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :admin, :integer, default: 0
end
end

View file

@ -0,0 +1,5 @@
class AddScreenshotReferenceToUsers < ActiveRecord::Migration[5.0]
def change
add_column :screenshots, :user_id, :integer, default: 0
end
end