Sha256: 6cac2f416ef4c1e2b1dd0c725cf79dd69b3cd6b525157fadea850c1bcf020693

Contents?: true

Size: 354 Bytes

Versions: 4

Compression:

Stored size: 354 Bytes

Contents

class CreateFederailsActivities < ActiveRecord::Migration[7.0]
  def change
    create_table :federails_activities do |t|
      t.references :entity, polymorphic: true, null: false
      t.string :action, null: false, default: nil
      t.references :actor, null: false, foreign_key: { to_table: :federails_actors }

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
federails-0.4.0 db/migrate/20200712174938_create_federails_activities.rb
federails-0.3.0 db/migrate/20200712174938_create_federails_activities.rb
federails-0.2.0 db/migrate/20200712174938_create_federails_activities.rb
federails-0.1.0 db/migrate/20200712174938_create_federails_activities.rb