add activeadmin

This commit is contained in:
João Geonizeli
2022-07-20 22:57:39 -03:00
parent ae7d31bc1b
commit 5e0d3def6d
12 changed files with 501 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
class CreateActiveAdminComments < ActiveRecord::Migration[7.0]
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