scinote-web/db/migrate/20180524091143_add_discard_to_repositories.rb

6 lines
183 B
Ruby

class AddDiscardToRepositories < ActiveRecord::Migration[5.1]
def change
add_column :repositories, :discarded_at, :datetime
add_index :repositories, :discarded_at
end
end