Sha256: d5751eacc9cc9609c6cc75aa971b9627ab1a5ecab9f6943d724d0973b19df7e1

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

class CreateFederailsFollowings < ActiveRecord::Migration[7.0]
  def change
    create_table :federails_followings do |t|
      t.references :actor, null: false, foreign_key: { to_table: :federails_actors }
      t.references :target_actor, null: false, foreign_key: { to_table: :federails_actors }
      t.integer :status, default: 0
      t.string :federated_url

      t.timestamps

      t.index [:actor_id, :target_actor_id], unique: true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
federails-0.4.0 db/migrate/20200712143127_create_federails_followings.rb
federails-0.3.0 db/migrate/20200712143127_create_federails_followings.rb
federails-0.2.0 db/migrate/20200712143127_create_federails_followings.rb
federails-0.1.0 db/migrate/20200712143127_create_federails_followings.rb