Skip to content

Commit

Permalink
add federails moderation migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 28, 2024
1 parent b7b9bb9 commit cc0b9f7
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This migration comes from federails_moderation (originally 20241127105043)
class CreateFederailsModerationReports < ActiveRecord::Migration[7.0]
def change
create_table :federails_moderation_reports do |t|
t.string :federated_url
t.references :federails_actor, foreign_key: true
t.string :content
t.references :object, polymorphic: true
t.datetime :resolved_at
t.string :resolution
t.timestamps
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This migration comes from federails_moderation (originally 20241128115659)
class CreateFederailsModerationDomainBlocks < ActiveRecord::Migration[7.0]
def change
create_table :federails_moderation_domain_blocks do |t|
t.string "domain", null: false, index: { unique: true }
t.timestamps
end
end
end
24 changes: 23 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 cc0b9f7

Please sign in to comment.