class AddPostDraft
Public Instance Methods
down()
click to toggle source
# File lib/thoth/migrate/003_add_post_draft.rb, line 30 def down drop_column(:posts, :is_draft) end
up()
click to toggle source
# File lib/thoth/migrate/003_add_post_draft.rb, line 34 def up add_column(:posts, :is_draft, :boolean, :null => false, :default => false) add_index(:posts, :is_draft) end