mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
10 lines
253 B
Ruby
10 lines
253 B
Ruby
class AddEmptyFieldToAsset < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :assets, :file_present, :boolean, default: false
|
|
change_column_null :assets, :file_present, false
|
|
end
|
|
|
|
def down
|
|
remove_column :assets, :file_present
|
|
end
|
|
end
|