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.

20091108092559_add_versions_status.rb 244B

12345678910
  1. class AddVersionsStatus < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :versions, :status, :string, :default => 'open'
  4. Version.update_all("status = 'open'")
  5. end
  6. def self.down
  7. remove_column :versions, :status
  8. end
  9. end