class CreateActiveAdminComments
Public Class Methods
down()
click to toggle source
# File db/migrate/20171112154442_create_active_admin_comments.rb, line 14 def self.down drop_table :active_admin_comments end
up()
click to toggle source
# File db/migrate/20171112154442_create_active_admin_comments.rb, line 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