scinote-web/db/migrate/20160531094100_rename_synced_children_to_linked_children.rb

10 lines
265 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class RenameSyncedChildrenToLinkedChildren < ActiveRecord::Migration[4.2]
2016-07-21 19:11:15 +08:00
def up
rename_column :protocols, :nr_of_synced_children, :nr_of_linked_children
end
def down
rename_column :protocols, :nr_of_linked_children, :nr_of_synced_children
end
2017-06-30 16:23:28 +08:00
end