docbrown/db/migrate/20180905013458_add_reading_time_to_articles.rb
Jibran Kalia f569f33e4f [WIP] Really simple calculate reading time function (#1283)
* Really simple calculate reading time function

* Move parse_it so that the number of methods in MarkdownParser is at 20

* Added test and default value for reading time
2018-12-09 13:42:32 -05:00

5 lines
147 B
Ruby

class AddReadingTimeToArticles < ActiveRecord::Migration[5.1]
def change
add_column :articles, :reading_time, :integer, default: 0
end
end