This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
FUNCTION: Converts a CSV (tab delimited) file to an Excel xlsx file. | |
Copyright (c) 2012, Konrad Foerstner <konrad@foerstner.org> | |
Permission to use, copy, modify, and/or distribute this software for | |
any purpose with or without fee is hereby granted, provided that the | |
above copyright notice and this permission notice appear in all | |
copies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
class MigrateUsersToPaperclip < ActiveRecord::Migration | |
def up | |
# Rename the old "mugshot" column to "old_file_name", since User.mugshot will now try to do Paperclip stuff | |
rename_column :users, :mugshot, :old_file_name | |
# Rename asset directories to pluralize | |
File.rename("public/system/user","public/system/users") |