Sha256: d59d34c0268d00a86d45f54913c01cbac70b9ce756b90d1e95656fd9a962678f

Contents?: true

Size: 462 Bytes

Versions: 54

Compression:

Stored size: 462 Bytes

Contents

class CreateActiveAdminComments < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version.to_s %>]
  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

  def self.down
    drop_table :active_admin_comments
  end
end

Version data entries

54 entries across 54 versions & 4 rubygems

Version Path
activeadmin-2.8.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-rb-1.5.1 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.7.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.6.1 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.6.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.5.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.4.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.3.1 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.3.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.2.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.1.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.0.0 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.0.0.rc2 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-2.0.0.rc1 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb