Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL Resource Scheduler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UNL Resource Scheduler
Commits
eb36ebc3
Commit
eb36ebc3
authored
8 years ago
by
Tyler R Lemburg
Browse files
Options
Downloads
Patches
Plain Diff
Add pricture to user table
parent
65ec1d36
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gemfile.lock
+4
-1
4 additions, 1 deletion
Gemfile.lock
db/migrate/20170109140000_add_resource_fields.rb
+45
-56
45 additions, 56 deletions
db/migrate/20170109140000_add_resource_fields.rb
db/migrate/20170314103000_add_user_picture.rb
+8
-0
8 additions, 0 deletions
db/migrate/20170314103000_add_user_picture.rb
with
57 additions
and
57 deletions
Gemfile.lock
+
4
−
1
View file @
eb36ebc3
...
@@ -149,5 +149,8 @@ DEPENDENCIES
...
@@ -149,5 +149,8 @@ DEPENDENCIES
thin
thin
unicorn
unicorn
RUBY VERSION
ruby 2.2.3p173
BUNDLED WITH
BUNDLED WITH
1.1
3.0
1.1
4.6
This diff is collapsed.
Click to expand it.
db/migrate/20170109140000_add_resource_fields.rb
+
45
−
56
View file @
eb36ebc3
...
@@ -47,17 +47,6 @@ class AddResourceFields < ActiveRecord::Migration
...
@@ -47,17 +47,6 @@ class AddResourceFields < ActiveRecord::Migration
:field_name
=>
'Model'
:field_name
=>
'Model'
)
)
# for each of those resources, add a field_data with its model
Resource
.
where
(
:service_space_id
=>
1
).
all
.
each
do
|
resource
|
ResourceFieldData
.
create
(
resource_id:
resource
.
id
,
resource_field_id:
model_field
.
id
,
data:
resource
.
model
)
resource
.
resource_class_id
=
tool_class
.
id
resource
.
save
end
# lastly, drop the column
# lastly, drop the column
remove_column
:resources
,
:model
remove_column
:resources
,
:model
end
end
...
...
This diff is collapsed.
Click to expand it.
db/migrate/20170314103000_add_user_picture.rb
0 → 100644
+
8
−
0
View file @
eb36ebc3
require
'active_record'
class
AddUserPicture
<
ActiveRecord
::
Migration
def
change
add_column
:users
,
:imagedata
,
:longblob
,
:default
=>
nil
add_column
:users
,
:imagemime
,
:string
,
:default
=>
nil
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment