Sha256: e5fa50eb0665c359f9437489741ab0eaf9d357a17550f4ae79dfa1143006dc92
Contents?: true
Size: 389 Bytes
Versions: 28
Compression:
Stored size: 389 Bytes
Contents
class AddFirstPublishedAtToEntries < ActiveRecord::Migration def change add_column :pageflow_entries, :first_published_at, :datetime execute(<<-SQL) UPDATE pageflow_entries SET first_published_at = ( SELECT MIN(published_at) FROM pageflow_revisions WHERE pageflow_revisions.entry_id = pageflow_entries.id LIMIT 1 ); SQL end end
Version data entries
28 entries across 28 versions & 1 rubygems