class CreateActiveAdminComments

Public Class Methods

down() click to toggle source
# File lib/nexmo_developer/db/migrate/20170908112821_create_active_admin_comments.rb, line 16
def self.down
  drop_table :active_admin_comments
end
up() click to toggle source
# File lib/nexmo_developer/db/migrate/20170908112821_create_active_admin_comments.rb, line 2
def self.up
  create_table :active_admin_comments, id: :uuid do |t|
    t.string :namespace
    t.text   :body
    t.string :resource_type
    t.uuid :resource_id
    t.string :author_type
    t.uuid :author_id
    t.timestamps
  end
  add_index :active_admin_comments, [:namespace]

end