crowdAI/crowdai

View on GitHub
doc/technical/archived_migrations/20180605144750_add_posted_at_to_blogs.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddPostedAtToBlogs < ActiveRecord::Migration[5.2]
  def change
    add_column :blogs, :posted_at, :timestamp
    execute("update blogs set posted_at = created_at;")
  end
end