Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 12 lines (10 sloc) 0.289 kB
339a270 @sunnyboy experimental phase
authored
1 class RenameSubjectIDinPagesTable < ActiveRecord::Migration
2 def self.up
3 rename_table("subjects","stories")
4 rename_column("pages", "subject_id","story_id")
5 end
6
7 def self.down
8 rename_table("stories","subjects")
9 rename_column("pages", "story_id","subject_id")
10 end
11 end
Something went wrong with that request. Please try again.