The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 rivejä
262 B

  1. class AddReplyToStatuses < ActiveRecord::Migration[5.0]
  2. def up
  3. add_column :statuses, :reply, :boolean, nil: false, default: false
  4. Status.update_all('reply = (in_reply_to_id IS NOT NULL)')
  5. end
  6. def down
  7. remove_column :statuses, :reply
  8. end
  9. end