public
Description: Plugin to change migrations to include a timestamp inside the class, rather than
Homepage: http://codetocustomer.com/blog/yagni-migrations-plugin
Clone URL: git://github.com/codetocustomer/yagni-migrations.git
Fri Aug 01 20:49:27 -0700 2008
commit  c64a9bb545061e8bf53fc3f6728510384fdefbbd
tree    dbc497b8fe3b80ec17f5265af41ef33752a3da86
parent  f154f463db42964586ab3ded678a7c65614f106e
yagni-migrations / init.rb
100644 9 lines (6 sloc) 0.314 kb
1
2
3
4
5
6
7
8
9
require 'code_to_customer/yagni_migrations'
 
# make migrations renumberable...
ActiveRecord::Migration.send(:include, CodeToCustomer::YagniMigration)
ActiveRecord::Migrator.send(:include, CodeToCustomer::YagniMigrator)
 
# swap the preference back to numbered....
ActiveRecord::Base.timestamped_migrations = false