Class: AddDeltaToPosts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddDeltaToPosts
- Defined in:
- lib/generators/bumble/templates/migrations/add_delta_to_posts.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
6 7 8 |
# File 'lib/generators/bumble/templates/migrations/add_delta_to_posts.rb', line 6 def self.down remove_column :posts, :delta end |
.up ⇒ Object
2 3 4 |
# File 'lib/generators/bumble/templates/migrations/add_delta_to_posts.rb', line 2 def self.up add_column :posts, :delta, :boolean, :default => true, :null => false end |