mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
18 lines
410 B
Ruby
18 lines
410 B
Ruby
class AddStateToTasks < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :my_modules,
|
|
:state,
|
|
:integer,
|
|
limit: 1,
|
|
default: 0
|
|
add_column :my_modules,
|
|
:completed_on,
|
|
:datetime,
|
|
null: true
|
|
end
|
|
|
|
def down
|
|
remove_column :my_modules, :state
|
|
remove_column :my_modules, :completed_on
|
|
end
|
|
end
|