pinnymz / migration_comments

Comments for your migrations
MIT License
173 stars 31 forks source link

Tables with no columns... #5

Closed voltechs closed 11 years ago

voltechs commented 11 years ago

change line 35 in schema_dumper.rb to

  len = col_names.keys.map{|index| lines[index]}.map(&:length).max + 2 unless col_names.empty?
pinnymz commented 11 years ago

Can you post some sample output from the current code that you are trying to address with this change?

pinnymz commented 11 years ago

Never mind, figured it out. Committed https://github.com/pinnymz/migration_comments/commit/2e07b6a1743271dcbedc80f5d6d2b6a9d614871a to fix this. Thanks for the report!