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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jeff Sturek
UNL Resource Scheduler
Commits
04f5aced
Commit
04f5aced
authored
8 years ago
by
Spencer McCoy
Browse files
Options
Downloads
Patches
Plain Diff
Remove Tyler and Liana from migration
parent
08111a07
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Gemfile.lock
+4
-1
4 additions, 1 deletion
Gemfile.lock
db/migrate/20151218100000_add_permissions.rb
+0
-10
0 additions, 10 deletions
db/migrate/20151218100000_add_permissions.rb
with
4 additions
and
11 deletions
Gemfile.lock
+
4
−
1
View file @
04f5aced
...
...
@@ -149,5 +149,8 @@ DEPENDENCIES
thin
unicorn
RUBY VERSION
ruby 2.2.3p173
BUNDLED WITH
1.1
0.6
1.1
3.0
This diff is collapsed.
Click to expand it.
db/migrate/20151218100000_add_permissions.rb
+
0
−
10
View file @
04f5aced
...
...
@@ -24,16 +24,6 @@ class AddPermissions < ActiveRecord::Migration
Permission
.
create
(
:name
=>
'Manage Space Hours'
)
Permission
.
create
(
:name
=>
'Manage Events'
)
Permission
.
create
(
:name
=>
'See Agenda'
)
# give all permissions including super user to tyler & lowad
permissions
=
Permission
.
all
tyler
=
User
.
find_by
(
:username
=>
'tyler'
)
lowad2
=
User
.
find_by
(
:username
=>
'lowad2'
)
permissions
.
each
do
|
perm
|
tyler
.
permissions
<<
perm
lowad2
.
permissions
<<
perm
end
end
def
down
...
...
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