Class: AlterCommentableIdToString
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AlterCommentableIdToString
- Defined in:
- lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
6 7 8 |
# File 'lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb', line 6 def self.down change_column :comments, :commentable_id, :integer end |
.up ⇒ Object
2 3 4 |
# File 'lib/generators/blacklight_user_generated_content/templates/alter_commentable_id_to_string.rb', line 2 def self.up change_column :comments, :commentable_id, :string end |