scinote-web/db/migrate/20150714125221_add_archive_to_projects.rb

7 lines
210 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class AddArchiveToProjects < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
def change
add_column :projects, :archived, :boolean, { default: false, null: false }
add_column :projects, :archived_on, :datetime
end
end