scinote-web/db/migrate/20160421100400_add_published_on_to_protocols.rb

9 lines
196 B
Ruby

class AddPublishedOnToProtocols < ActiveRecord::Migration[4.2]
def up
add_column :protocols, :published_on, :datetime
end
def down
remove_column :protocols, :published_on
end
end