Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.283 kB
class AddExampleVersioning < ActiveRecord::Migration
def self.up
Example.create_versioned_table
examples = Example.find(:all)
examples.each do |e|
e.updated_at = Time.now
e.save
end
end
def self.down
Example.drop_versioned_table
end
end
Jump to Line
Something went wrong with that request. Please try again.