Class: AddPreviewToPosts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddPreviewToPosts
- Defined in:
- lib/ecrire/db/migrate/20150120093481_add_preview_to_posts.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 |
# File 'lib/ecrire/db/migrate/20150120093481_add_preview_to_posts.rb', line 2 def change add_column :posts, :compiled_preview_content, :text remove_column :posts, :excerpt rename_column :posts, :compiled_preview_content, :compiled_excerpt end |