Railsã®MigrationãTimestampããé£çªã«æ»ã
Rails 2ç³»ããMigrationãã¡ã¤ã«ã®ãã¼ã¸ã§ã³ãTimestampã§ç®¡çãããããã«ãªãã¾ããããããã¨ãã£ã¿ã§éãã¨ãä¸ä¾¿ãªãã§ãããã2.2ããã¯configã§é£çªã«æ»ããããã«ãªã£ãã®ã§ãæ»ãã¾ããã
config/environment.rb
config.active_record.timestamped_migrations = false
ã§ãä»ã¾ã§Timestampãé ã«ã¤ãã¦ç®¡çããã¦ãããã®ãé£çªã«ãªãã¼ã ã
ruby -rfileutils -e 'Dir["db/migrate/*.rb"].sort.each_with_index {|f, i| FileUtils.mv f, f.gsub(/\d+/, sprintf("%03d", i))}'