This commit is contained in:
lontra
2019-05-29 19:14:37 +03:00
commit 102301019b
71 changed files with 2365 additions and 0 deletions

View File

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