Sha256: 2fe418e205596b0d5c35d5059c41a0535a24bda34e241870dc42bf5d897511f5
Contents?: true
Size: 613 Bytes
Versions: 40
Compression:
Stored size: 613 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, foreign_key: false t.string :resource_type, null: false t.references :author, polymorphic: true t.timestamps null: false 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
40 entries across 40 versions & 2 rubygems