| 1 | class CreateActiveAdminComments < ActiveRecord::Migration::Current |
| 2 | def self.up |
| 3 | create_table :active_admin_comments do |t| |
| 4 | t.string :namespace |
| 5 | t.text :body |
| 6 | t.references :resource, polymorphic: true |
| 7 | t.references :author, polymorphic: true |
| 8 | t.timestamps |
| 9 | end |
| 10 | add_index :active_admin_comments, [:namespace] |
| 11 | |
| 12 | end |
| 13 | |
| 14 | def self.down |
| 15 | drop_table :active_admin_comments |
| 16 | end |
| 17 | end |