Commit dbefe1f8 authored by Valery Sizov's avatar Valery Sizov

fix migration

parent 92f5b058
class AddNoteToUsers < ActiveRecord::Migration class AddNoteToUsers < ActiveRecord::Migration
def change def up
add_column :users, :note, :text # 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
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment