Skip to content
Snippets Groups Projects
Commit dbefe1f8 authored by Valery Sizov's avatar Valery Sizov
Browse files

fix migration

parent 92f5b058
No related branches found
No related tags found
No related merge requests found
class AddNoteToUsers < ActiveRecord::Migration
def change
add_column :users, :note, :text
def up
# Column "note" has been added to schema mistakenly (without actual migration),
# and this is why it can exist in some instances.
unless column_exists?(:users, :note)
add_column :users, :note, :text
end
end
def down
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment