Skip to content

Commit

Permalink
add new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Mar 5, 2025
1 parent 8268b26 commit 37365d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions db/migrate/20250305171530_add_local_to_actors.federails.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This migration comes from federails (originally 20250301082500)
class AddLocalToActors < ActiveRecord::Migration[7.0]
def change
add_column :federails_actors, :local, :boolean, null: false, default: false

reversible do |dir|
dir.up do
exec_update "UPDATE federails_actors SET local=true WHERE entity_type IS NOT NULL"
end
end
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37365d9

Please sign in to comment.