Sha256: 7ab8be51b35b4a57cea82a0b598de54823d3784c1da75ef040f4eb327e0eafb2

Contents?: true

Size: 329 Bytes

Versions: 17

Compression:

Stored size: 329 Bytes

Contents

namespace :db do
  desc "Describe all the tables in the database by reading the table comments"
  task :comments => :environment do
    ActiveRecord::Base.connection.tables.sort.each do |table_name|
      comment = ActiveRecord::Base.connection.table_comment(table_name)
      puts "#{table_name} - #{comment}"
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
frolic-redhillonrails_core-0.0.1 tasks/db/comments.rake
aspgems-redhillonrails_core-2.0.0.beta4 lib/tasks/db/comments.rake
aspgems-redhillonrails_core-2.0.0.beta2 lib/tasks/db/comments.rake
aspgems-redhillonrails_core-2.0.0.beta1 lib/tasks/db/comments.rake
redhillonrails_core-1.0.9.1 tasks/db/comments.rake
redhillonrails_core-1.0.9 tasks/db/comments.rake
redhillonrails_core-1.0.8 tasks/db/comments.rake
redhillonrails_core-1.0.6 tasks/db/comments.rake
redhillonrails_core-1.0.5 tasks/db/comments.rake
redhillonrails_core-1.0.4.1 tasks/db/comments.rake
redhillonrails_core-1.0.4 tasks/db/comments.rake
redhillonrails_core-1.0.3.1 tasks/db/comments.rake
redhillonrails_core-1.0.3 tasks/db/comments.rake
redhillonrails_core-1.0.2 tasks/db/comments.rake
redhillonrails_core-1.0.1 tasks/db/comments.rake
redhillonrails_core-1.0.0 tasks/db/comments.rake
authorails-1.0.0 plugins/redhillonrails_core/tasks/db/comments.rake