Sha256: 86b5c3e5b422167d36658e4e03396c85d1237bee9a96e5cbec8346e557e95d06

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

class CreateActiveAdminComments < ActiveRecord::Migration[6.1]
  def self.up
    create_table :active_admin_comments do |t|
      t.string :namespace
      t.text   :body
      t.references :resource, polymorphic: true
      t.references :author, polymorphic: true
      t.timestamps
    end
    add_index :active_admin_comments, [:namespace]
  end

  def self.down
    drop_table :active_admin_comments
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_invitable-1.0.0 spec/dummy/db/migrate/20210618143451_create_active_admin_comments.rb