Sprankelprachtig aan/afmeldsysteem

20170815155155_remove_secret_name_from_activity.rb 394B

1234567891011121314
  1. class RemoveSecretNameFromActivity < ActiveRecord::Migration[5.0]
  2. def up
  3. remove_column :activities, :secret_name
  4. remove_column :activities, :show_hidden
  5. rename_column :activities, :public_name, :name
  6. end
  7. def down
  8. rename_column :activities, :name, :public_name
  9. add_column :activities, :secret_name, :string
  10. add_column :activities, :show_hidden, :boolean
  11. end
  12. end