Class: Rtm01to02
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- Rtm01to02
- Defined in:
- lib/rtm/activerecord/002_rtm01to02.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rtm/activerecord/002_rtm01to02.rb', line 10 def self.down rename_table :roles, :association_roles rename_table :names, :topic_names rename_column :variants, :name_id, :topic_name_id rename_column :item_identifiers, :construct_id, :topic_map_construct_id rename_column :item_identifiers, :construct_type, :topic_map_construct_type end |
.up ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/rtm/activerecord/002_rtm01to02.rb', line 2 def self.up rename_table :association_roles, :roles rename_table :topic_names, :names rename_column :variants, :topic_name_id, :name_id rename_column :item_identifiers, :topic_map_construct_id, :construct_id rename_column :item_identifiers, :topic_map_construct_type, :construct_type end |