Files
redux-scraper/db/migrate/20230330134212_create_domain_fa_follows.rb
2025-01-01 03:29:53 +00:00

14 lines
451 B
Ruby

# typed: true
class CreateDomainFaFollows < ActiveRecord::Migration[7.0]
def change
# pk removed in 20230523162724_remove_pk_from_follows.rb
create_table :domain_fa_follows do |t|
t.references :follower, null: false
t.references :followed, null: false
end
add_foreign_key :domain_fa_follows, :domain_fa_users, column: :follower_id
add_foreign_key :domain_fa_follows, :domain_fa_users, column: :followed_id
end
end