scinote-web/db/migrate/20150923110208_add_archive_to_my_modules.rb
2017-06-30 10:23:28 +02:00

6 lines
215 B
Ruby

class AddArchiveToMyModules < ActiveRecord::Migration[4.2]
def change
add_column :my_modules, :archived, :boolean, { default: false, null: false }
add_column :my_modules, :archived_on, :datetime
end
end