Permalink
Browse files

Added a migration to rename text_assets.filename to name.

Running specs: 521 examples, 260 failures
  • Loading branch information...
1 parent 42852ec commit 6d3df3e96d1b8c21313ea6dd03bd90ce41d56786 @nelstrom committed Nov 9, 2008
Showing with 9 additions and 0 deletions.
  1. +9 −0 db/migrate/004_rename_text_asset_filename_to_name.rb
@@ -0,0 +1,9 @@
+class RenameTextAssetFilenameToName < ActiveRecord::Migration
+ def self.up
+ rename_column :text_assets, :filename, :name
+ end
+
+ def self.down
+ rename_column :text_assets, :name, :filename
+ end
+end

0 comments on commit 6d3df3e

Please sign in to comment.