* 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
5 lines
147 B
Ruby
5 lines
147 B
Ruby
class AddReadingTimeToArticles < ActiveRecord::Migration[5.1]
|
|
def change
|
|
add_column :articles, :reading_time, :integer, default: 0
|
|
end
|
|
end
|