Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tô Ngọc Ánh
VeNJob
Commits
d1105e30
Commit
d1105e30
authored
Aug 05, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rake create slug
parent
9ca3a5e6
Pipeline
#820
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
lib/tasks/create_slug.rake
+18
-0
No files found.
lib/tasks/create_slug.rake
0 → 100644
View file @
d1105e30
namespace
:create_slug
do
desc
'Create slug model Location'
task
locations: :environment
do
Location
.
all
.
each
do
|
location
|
location
.
update_attributes
(
slug:
""
)
end
end
desc
'Create slug model Industry'
task
industries: :environment
do
Industry
.
all
.
each
do
|
industry
|
industry
.
update_attributes
(
slug:
""
)
end
end
desc
'Create slug to all model'
task
all:
%i[locations industries]
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment