baarkerlounger
3 years ago
10 changed files with 16 additions and 26 deletions
@ -1,9 +0,0 @@
|
||||
module AccountHelper |
||||
def resource_name |
||||
:user |
||||
end |
||||
|
||||
def resource |
||||
@resource = current_user |
||||
end |
||||
end |
@ -1,7 +1,9 @@
|
||||
class AddNameEmailRoleOrgToUsers < ActiveRecord::Migration[6.1] |
||||
def change |
||||
add_column :users, :name, :string |
||||
add_column :users, :role, :string |
||||
add_column :users, :organisation, :string |
||||
change_table :users, bulk: true do |t| |
||||
t.column :name, :string |
||||
t.column :role, :string |
||||
t.column :organisation, :string |
||||
end |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue