Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app_push
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_server
app_push
Commits
67e00984
Commit
67e00984
authored
Jun 28, 2020
by
liangyuzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整日期
parent
df7bb131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
lib/tasks/data_migrations/version_v1.rake
+1
-1
No files found.
lib/tasks/data_migrations/version_v1.rake
View file @
67e00984
...
@@ -4,7 +4,7 @@ namespace :data_migrations do
...
@@ -4,7 +4,7 @@ namespace :data_migrations do
desc
"batch delete notification_statistics data"
desc
"batch delete notification_statistics data"
task
:v1_batch_delete_notification_statistics_data
=>
:environment
do
task
:v1_batch_delete_notification_statistics_data
=>
:environment
do
first_id
=
NotificationStatistic
.
first
.
id
first_id
=
NotificationStatistic
.
first
.
id
last_object
=
NotificationStatistic
.
where
(
"notification_statistics.created_at < ?"
,
'2020-0
4
-30 16:00:00'
).
last
last_object
=
NotificationStatistic
.
where
(
"notification_statistics.created_at < ?"
,
'2020-0
5
-30 16:00:00'
).
last
first_id
.
step
(
last_object
.
id
,
10000
)
do
|
i
|
first_id
.
step
(
last_object
.
id
,
10000
)
do
|
i
|
...
...
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