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-4.0.0.beta15 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta14 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-rails-1.7.1 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta13 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta12 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-3.2.5 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta11 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-3.2.4 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta10 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta9 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-3.2.3 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta8 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta7 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-3.2.2 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta6 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-3.2.1 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta5 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta4 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta3 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb
activeadmin-4.0.0.beta2 lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb