Cross Reference: 20160614065106_fill_empty_commits.rb
xref
: /
ontohub
/
db
/
data
/
20160614065106_fill_empty_commits.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
FillEmptyCommits
<
MigrationWithData
def
self.up
Commit.where
(
author_name
:
nil
)
.
find_each
(&:
fill_commit_instance
!)
end
def
self.down
raise
IrreversibleMigration
end
end