Mercurial > hg > soundsoftware-site
changeset 106:f6ea6ffaaeeb luisf
Migration that renames the column in ssamr table (university->institution_id)
author | luisf |
---|---|
date | Fri, 17 Dec 2010 10:28:24 +0000 |
parents | 975e65e075d1 |
children | 361f1e8b2e23 |
files | db/migrate/20101216145813_fix_university_name_in_ssamr_details_table.rb |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/migrate/20101216145813_fix_university_name_in_ssamr_details_table.rb Fri Dec 17 10:28:24 2010 +0000 @@ -0,0 +1,10 @@ +class FixUniversityNameInSsamrDetailsTable < ActiveRecord::Migration + def self.up + rename_column :ssamr_user_details, :university, :institution_id + end + + def self.down + # there's no need to rollback the name of this column + # because it was not used previously + end +end