Fixed bug: On init setups, seeds.rb isn't started.
This commit is contained in:
parent
21ce374446
commit
76c22f0991
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
class FacebookArticleTypes < ActiveRecord::Migration
|
||||
def up
|
||||
facebook_at = Ticket::Article::Type.find_by( name: 'facebook' )
|
||||
|
||||
return if !facebook_at
|
||||
|
||||
facebook_at.name = 'facebook feed post'
|
||||
facebook_at.save
|
||||
|
||||
|
|
Loading…
Reference in a new issue