class Variable < ActiveRecord::Base
  validates :name, format: {with: /MORPH_[A-Z_]+/, message: "should look something like MORPH_SEAGULL"}
end

class Variable < ActiveRecord::Base
  validates :name, format: {with: /\AMORPH_[A-Z_]+\z/, message: "should look something like MORPH_SEAGULL"}
end

Fix up name validation so it checks the whole string not just a partial match
Fix up name validation so it checks the whole string not just a partial match
