Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
diaspora
Commits
019dc147
Commit
019dc147
authored
Apr 03, 2015
by
Steffen van Bergerem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add migration to remove deleted aspects from auto follow back
parent
07a344d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
db/migrate/20150403192408_remove_deleted_aspects_from_auto_follow_back.rb
...403192408_remove_deleted_aspects_from_auto_follow_back.rb
+11
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20150403192408_remove_deleted_aspects_from_auto_follow_back.rb
0 → 100644
View file @
019dc147
class
RemoveDeletedAspectsFromAutoFollowBack
<
ActiveRecord
::
Migration
def
up
User
.
where
.
not
(
auto_follow_back_aspect_id:
Aspect
.
select
(
:id
))
.
where
(
auto_follow_back:
true
)
.
update_all
(
auto_follow_back:
false
,
auto_follow_back_aspect_id:
nil
)
end
def
down
raise
ActiveRecord
::
IrreversibleMigration
end
end
db/schema.rb
View file @
019dc147
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20150
220001357
)
do
ActiveRecord
::
Schema
.
define
(
version:
20150
403192408
)
do
create_table
"account_deletions"
,
force: :cascade
do
|
t
|
t
.
string
"diaspora_handle"
,
limit:
255
...
...
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