scinote-web/db/migrate/20150923110208_add_archive_to_my_modules.rb

8 lines
211 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class AddArchiveToMyModules < ActiveRecord::Migration
def change
add_column :my_modules, :archived, :boolean, { default: false, null: false }
add_column :my_modules, :archived_on, :datetime
end
end