Added welcome and profile actions to the my controller
This commit is contained in:
parent
8e4dd058b6
commit
020a864736
12 changed files with 125 additions and 19 deletions
|
|
@ -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
|
||||
5
db/migrate/20170422182228_add_admin_field_to_users.rb
Normal file
5
db/migrate/20170422182228_add_admin_field_to_users.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddAdminFieldToUsers < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :users, :admin, :integer, default: 0
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddScreenshotReferenceToUsers < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :screenshots, :user_id, :integer, default: 0
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue