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] |
class AddNameEmailRoleOrgToUsers < ActiveRecord::Migration[6.1] |
||||||
def change |
def change |
||||||
add_column :users, :name, :string |
change_table :users, bulk: true do |t| |
||||||
add_column :users, :role, :string |
t.column :name, :string |
||||||
add_column :users, :organisation, :string |
t.column :role, :string |
||||||
|
t.column :organisation, :string |
||||||
|
end |
||||||
end |
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue