OSDN Git Service

25fa4c925c64df78aab110c323a85590cfba7bd6
[pettanr/pettanr.git] / db / migrate / 20140329220907_fix_extend_system.rb
1 class FixExtendSystem < ActiveRecord::Migration
2   def up
3     rename_column :speech_balloons, :classname, :speech_balloon_template_classname
4     rename_column :speech_balloons, :settings, :speech_balloon_template_settings
5     add_column :balloons, :speech_balloon_template_classname, :string, :null => false, :limit => 50
6     rename_column :balloons, :settings, :speech_balloon_template_settings
7     add_column :speeches, :speech_balloon_template_classname, :string, :null => false, :limit => 50
8     rename_column :speeches, :settings, :speech_balloon_template_settings
9     add_column :speeches, :writing_format_classname, :string, :null => false, :limit => 50
10     rename_column :speeches, :settings, :writing_format_settings
11     add_column :licenses, :license_group_classname, :string, :null => false, :limit => 50
12     rename_column :licenses, :settings, :license_group_settings
13   end
14
15   def down
16   end
17 end