HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Add migration to absolutely ensure that everyone is up to date with t…
…he new column name for user plugins
- Loading branch information...
Showing with 10 additions and 0 deletions.
|@@ -0,0 +1,9 @@|
|+class EnsureUserPluginsUseNameAndNotTitle < ActiveRecord::Migration|
|+ def self.up|
|+ rename_column :user_plugins, :title, :name if UserPlugin.table_exists? and UserPlugin.column_names.include?('title') and !UserPlugin.column_names.include?('name')|
|+ def self.down|
|+ # We don't need to go backwards, there already is one that should handle that..|