mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-14 19:05:27 +00:00
10 lines
272 B
Ruby
10 lines
272 B
Ruby
|
class AddInstanceActor < ActiveRecord::Migration[5.2]
|
||
|
def up
|
||
|
Account.create!(id: -99, actor_type: 'Application', locked: true, username: Rails.configuration.x.local_domain)
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
Account.find_by(id: -99, actor_type: 'Application').destroy!
|
||
|
end
|
||
|
end
|