Sha256: 650cdde46255e685417f03710bc31f387c8f2650dfddb6b58deb58a594db905c
Contents?: true
Size: 581 Bytes
Versions: 61
Compression:
Stored size: 581 Bytes
Contents
class CreateActiveAdminComments < ActiveRecord::Migration def self.up create_table :active_admin_comments do |t| t.string :namespace t.text :body t.string :resource_id, null: false t.string :resource_type, null: false t.references :author, polymorphic: true t.timestamps end add_index :active_admin_comments, [:namespace] add_index :active_admin_comments, [:author_type, :author_id] add_index :active_admin_comments, [:resource_type, :resource_id] end def self.down drop_table :active_admin_comments end end
Version data entries
61 entries across 61 versions & 13 rubygems