20190715164535_add_instance_actor.rb 272 B

123456789
  1. class AddInstanceActor < ActiveRecord::Migration[5.2]
  2. def up
  3. Account.create!(id: -99, actor_type: 'Application', locked: true, username: Rails.configuration.x.local_domain)
  4. end
  5. def down
  6. Account.find_by(id: -99, actor_type: 'Application').destroy!
  7. end
  8. end